Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only search cwd on user-script require calls #136

Merged
merged 3 commits into from
Apr 21, 2021
Merged

Only search cwd on user-script require calls #136

merged 3 commits into from
Apr 21, 2021

Conversation

jclem
Copy link
Contributor

@jclem jclem commented Apr 21, 2021

Currently, we search the existing module.paths and then process.cwd() when a user script calls require. Instead, we should remove the fallback altogether (since at runtime, the actions/github-script directory has no modules installed, anyway), and only search process.cwd().

This can be a patch release once merged.

Thanks @JamesMGreene for reporting.

@jclem jclem requested a review from a team April 21, 2021 22:14
@jclem jclem changed the title Search the cwd first, then existing module paths Only search cwd on user-script require calls Apr 21, 2021
@github-actions
Copy link

github-actions bot commented Apr 21, 2021

Hello from actions/github-script! (eb39546)

@jclem jclem merged commit 85e88a6 into main Apr 21, 2021
@jclem jclem deleted the search-cwd-first branch April 21, 2021 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants