Adding a top-level build-file
argument to git_override
#21336
nicholasjng
started this conversation in
Ideas
Replies: 1 comment 12 replies
-
You can still use the |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering if it would make sense to include a build file slot in the
git_override
method (and possibly the others too) in MODULE.bazel.My angle is trying to pull in a git dependency that does not have a Bazel integration, and thus needs a proper build file marking it as a package. This used to work by checking in a build file and giving it to the
git_repository
function, but bzlmod's overrides do not have such a slot.I know that I can probably keep my build file from the workspace era in my main repo and make a patch out of it (does anyone have a nice shell snippet for that by the way, generating a whole-file patch of a checked-in file?), but I think this would be so much of a UX improvement that I'd like to see it. How do others feel about this?
Beta Was this translation helpful? Give feedback.
All reactions