-
Notifications
You must be signed in to change notification settings - Fork 86
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
cli/fix: support bzlmod #6191
cli/fix: support bzlmod #6191
Conversation
ca409fc
to
779ca91
Compare
There is a dependency between this made it's not possible to use |
I want to trickle I think we could make do with an assumption with |
30b6566
to
dbc8a26
Compare
cli/bazelisk/bazelisk.go
Outdated
// Prevent Bazelisk `log.Printf` call to write directly to stderr | ||
oldWriter := log.Writer() | ||
log.SetOutput(stderr) | ||
defer log.SetOutput(oldWriter) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems OK to me to put this logic in Run()
since to me the expected behavior of RunOpts
would be that all stderr/stdout from bazelisk, including go logs, goes to the stdout/stderr writers passed in. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm I tried fitting it in if RunOpts.stderr is set 🤔
Ensure that bzlmod is correctly detected. In case bzlmod is used, we need to query for the location of @@gazelle~override~go_deps~bazel_gazelle_go_repository_config//:WORKSPACE so that we could feed it to Gazelle to generate BUILD files with correct import.
01127c3
to
6826477
Compare
6826477
to
f501fe4
Compare
Ensure that bzlmod is correctly detected.
In case bzlmod is used, we need to query for the location of
so that we could feed it to Gazelle to generate BUILD files with correct
import.