8000 Only search cwd on user-script require calls by jclem · Pull Request #136 · actions/github-script · GitHub
[go: up one dir, main page]

Skip to content

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.

3 participants

0