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

fix: repair and cleanup npm binary caching #1050

Merged
merged 1 commit into from
May 15, 2024
Merged

fix: repair and cleanup npm binary caching #1050

merged 1 commit into from
May 15, 2024

Conversation

Gankra
Copy link
Member

@Gankra Gankra commented May 15, 2024

  • this.binaryPath no longer exists, which was causing us to refetch every time
  • Package.run already calls Package.install as a subroutine, there's no need to call it again and duplicate the work (potentially we could also remove that, but hey integrity checks are nice?)
  • The additional logic in run to select a binary to call was an artifact of development, and never actually ran (trivially provable by nothing ever omitting the argument) (this logic is performed by npx itself because we populated package.json's 'bins')

* this.binaryPath no longer exists, which was causing us to refetch every time
* Package.run already calls Package.install as a subroutine, there's no need to call it again and duplicate the work (potentially we could also remove that, but hey integrity checks are nice?)
* The additional logic in 
un to select a binary to call was an artifact of development, and never actually ran (trivially provable by nothing ever omitting the argument) (this logic is performed by npx itself because we populated package.json's 'bins')
@mistydemeo mistydemeo merged commit 7be3816 into main May 15, 2024
16 checks passed
@mistydemeo mistydemeo deleted the npm-cache branch May 15, 2024 18:18
mistydemeo added a commit that referenced this pull request May 15, 2024
Incorporates the npm cache fix in #1050.
ashleygwilliams pushed a commit that referenced this pull request May 20, 2024
Incorporates the npm cache fix in #1050.
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.

None yet

2 participants