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: auto-setting lock attribute on deb_index #63

Merged
merged 2 commits into from
Jul 18, 2024
Merged

fix: auto-setting lock attribute on deb_index #63

merged 2 commits into from
Jul 18, 2024

Conversation

alexeagle
Copy link
Collaborator

There were three bugs:

  • Need to check which WORKSPACE/WORKSPACE.bazel file to update
  • Under bzlmod, printed the canonical name (with a bunch of tilde) rather than apparent name of the rule
  • Missed escaping for quotes, so the command we printed for users to run had too many arguments

Also as a convenience, check if the user setup tools/buildozer so we don't rely on the $PATH if we can help it.

There were three bugs:
- Need to check which WORKSPACE/WORKSPACE.bazel file to update
- Under bzlmod, printed the canonical name (with a bunch of tilde) rather than apparent name of the rule
- Missed escaping for quotes, so the command we printed for users to run had too many arguments
@@ -17,15 +17,33 @@ echo ''
echo 'Writing lockfile to {workspace_relative_path}'
cp $lock {workspace_relative_path}

# Detect which file we wish the user to edit
if [ -e $BUILD_WORKSPACE_DIRECTORY/WORKSPACE ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

looks like we should also support MODULE.bazel here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, will file a follow-up

@alexeagle alexeagle merged commit 04ba624 into main Jul 18, 2024
7 checks passed
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.

2 participants