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

feat: add MODULE.bazel support to copy.sh plus silent lockless repos #88

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jjmaestro
Copy link
Contributor

Note

Stacked on top of #87

feat: add support for MODULE.bazel to the lock copy.sh script

Add support for MODULE.bazel to the lock script and avoid printing an unnecessary (and annoying 😅) error when building in a "modern repo".

feat: avoid DEBUG messages for lockless repos

Add a nolock attribute to avoid getting annoying DEBUG messages for repos that we explicitly want to run without a lock.

This was referenced Sep 19, 2024
@jjmaestro jjmaestro force-pushed the feat-add-MODULE-to-lock-copy-script-plus-silent-lockless-repos branch from 309c9cd to 55c332a Compare September 19, 2024 16:24
@jjmaestro jjmaestro mentioned this pull request Sep 19, 2024
See bazelbuild/bazel#20369

While working on refactoring, I kept hitting rebase conflicts due to
issues with the MODULE lock. I guess it's because the Bazel version in
e2e tests is much lower than the current one with the fix (7.2) but
still, I don't think it adds much to have the lock in e2e testing.
PR GoogleContainerTools#73 added the `_resolve` and this breaks the buildozer fix / autofix
It seemed like 75afff9 in GoogleContainerTools#47 added the new locks but as new files, that
is, the old ones were left behind.
Add support for MODULE.bazel to the lock script and avoid printing an
unnecessary (and annoying 😅) error when building in a "modern repo".
Add a `nolock` attribute to avoid getting annoying DEBUG messages for
repos that we explicitly want to run without a lock.
@jjmaestro jjmaestro force-pushed the feat-add-MODULE-to-lock-copy-script-plus-silent-lockless-repos branch from 55c332a to 540a7cb Compare September 22, 2024 18:43
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.

1 participant