Skip to content

Commit

Permalink
feat: add support for MODULE.bazel to the lock copy.sh script
Browse files Browse the repository at this point in the history
Add support for MODULE.bazel to the lock script and avoid printing an
unnecessary (and annoying πŸ˜…) error when building in a "modern repo".
  • Loading branch information
jjmaestro committed Sep 18, 2024
1 parent 35003bb commit 45b93a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apt/private/resolve.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ if [ -e $BUILD_WORKSPACE_DIRECTORY/WORKSPACE ]; then
wksp_file="WORKSPACE"
elif [ -e $BUILD_WORKSPACE_DIRECTORY/WORKSPACE.bazel ]; then
wksp_file="WORKSPACE.bazel"
elif [ -e $BUILD_WORKSPACE_DIRECTORY/MODULE.bazel ]; then
wksp_file="MODULE.bazel"
else
echo>&2 "Error: neither WORKSPACE nor WORKSPACE.bazel file was found"
echo>&2 "Error: no MODULE.bazel or WORKSPACE file was found"
exit 1
fi
Expand Down

0 comments on commit 45b93a0

Please sign in to comment.