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

Allow the root module to always set the lock file #1040

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

shs96c
Copy link
Collaborator

@shs96c shs96c commented Jan 16, 2024

It's nice to have a lock file in your project, but if you're also a ruleset that others depend on (eg. protobuf) the root module's lock file should be the one that is used, not yours.

Fixes #1035

It's nice to have a lock file in your project, but if you're also
a ruleset that others depend on (eg. `protobuf`) the root module's
lock file should be the one that is used, not yours.
@shs96c shs96c added this to the Release 6.0 milestone Jan 16, 2024
Copy link
Member

@jin jin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do/can we have a test for this?

Copy link
Member

@jin jin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@shs96c shs96c merged commit dd23f40 into bazelbuild:master Jan 17, 2024
8 checks passed
@shs96c shs96c deleted the override-lock-file branch January 17, 2024 16:22
kon72 pushed a commit to kon72/rules_jvm_external that referenced this pull request Mar 23, 2024
It's nice to have a lock file in your project, but if you're also
a ruleset that others depend on (eg. `protobuf`) the root module's
lock file should be the one that is used, not yours.

Signed-off-by: kon72 <kinsei0916@gmail.com>
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.

With bzlmod if the root module and a dependency both specify a lock file, use the root module's
2 participants