Skip to content

[bzlmod] Mark npm extension as reproducible#1541

Merged
jbedard merged 1 commit into
aspect-build:mainfrom
dzbarsky:main
Mar 28, 2024
Merged

[bzlmod] Mark npm extension as reproducible#1541
jbedard merged 1 commit into
aspect-build:mainfrom
dzbarsky:main

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Mar 23, 2024

Copy link
Copy Markdown
Collaborator

This stops duplicating all the info from the pnpm lockfile into the Bazel one. Tested by upgrading to Bazel 7.1.1 and bazel test --lockfile_mode=update //.... Lockfile dropped from 79K lines to 4.4K.

There are still some gains to be had from python and go rules also using deterministic node, but that's outside the scope of this PR.

Comment thread MODULE.bazel Outdated
@jbedard

jbedard commented Mar 23, 2024

Copy link
Copy Markdown
Member

If we're starting to work on the lockfile maybe we should checkin one that shoes this improvement?

@dzbarsky

Copy link
Copy Markdown
Collaborator Author

If we're starting to work on the lockfile maybe we should checkin one that shoes this improvement?

I switched the bzlmod example to use updated bazel version and check in the lockfile. Is that fine or do you want a second bzlmod example with lockfile?

@dzbarsky
dzbarsky force-pushed the main branch 2 times, most recently from 883570b to 0d377ce Compare March 27, 2024 01:40
@jbedard

jbedard commented Mar 27, 2024

Copy link
Copy Markdown
Member

I switched the bzlmod example to use updated bazel version and check in the lockfile. Is that fine or do you want a second bzlmod example with lockfile?

I guess it depends how often it's updated and how annoying/noisy that will be. Any ideas?

@DavidZbarsky-at

Copy link
Copy Markdown
Contributor

I switched the bzlmod example to use updated bazel version and check in the lockfile. Is that fine or do you want a second bzlmod example with lockfile?

I guess it depends how often it's updated and how annoying/noisy that will be. Any ideas?

There's nothing really enforcing the lockfile is up to date so it will only get updated when a human runs bazel in that workspace and there are dependency changes. (It would be nice to enforce but there are still os/arch-specific lockfile sections so it was annoying for me to match the lockfile to what CI expected)

@jbedard
jbedard enabled auto-merge (squash) March 28, 2024 22:05
auto-merge was automatically disabled March 28, 2024 22:17

Head branch was pushed to by a user without write access

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