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

Support bazelisk #346

Merged
merged 6 commits into from
Feb 18, 2020
Merged

Support bazelisk #346

merged 6 commits into from
Feb 18, 2020

Conversation

zoidyzoidzoid
Copy link
Contributor

@zoidyzoidzoid zoidyzoidzoid commented Feb 14, 2020

Closes #339

TODO:

  • Add tests

bazel/bazel.go Outdated Show resolved Hide resolved
bazel/bazel.go Show resolved Hide resolved
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@zoidyzoidzoid
Copy link
Contributor Author

Thanks for the quick review @achew22 , those are great points. Updated.

bazel/bazel.go Outdated Show resolved Hide resolved
// /DIR/node_modules/@bazel/ibazel/bin/darwin_amd64/ibazel
// We can find bazelisk in
// /DIR/node_modules/@bazel/bazelisk/bazelizk-darwin_amd64
func bazeliskNpmPath(ibazelBinPath string) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Could I have you add a test for this? It doesn't depend on any system calls or anything so a table driven test would be sufficient.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, added these earlier but couldn't figure out why I was getting a segfault, but fixed now.

Fortunately they caught me missing the .exe extension for Windows. I'm not 100% comfortable with how I'm doing the platform detection though.

@achew22 achew22 merged commit d195868 into bazelbuild:master Feb 18, 2020
zoidyzoidzoid added a commit to zoidyzoidzoid/bazel-watcher that referenced this pull request Apr 3, 2020
* 'master' of https://github.com/bazelbuild/bazel-watcher:
  Fix a lingering TODO (bazelbuild#362)
  Update dependency com_github_bazelbuild_rules_go to v0.22.1 (bazelbuild#354)
  Stamp can be passed without a value (bazelbuild#361)
  Update module golang/protobuf to v1.3.5 (bazelbuild#359)
  Update module fsnotify/fsnotify to v1.4.9 (bazelbuild#357)
  Generating CHANGELOG.md for release v0.12.3
  Fix stamping regression caused by latest rules_go (bazelbuild#360)
  Update module golang/protobuf to v1.3.4 (bazelbuild#355)
  Update dependency io_bazel_rules_go to v0.22.1 (bazelbuild#335)
  Enable run_output by default (bazelbuild#349)
  Update module bazelbuild/rules_go to v0.22.1 (bazelbuild#336)
  Generating CHANGELOG.md for release v0.12.2
  Release to the correct repo
  Generating CHANGELOG.md for release v0.12.0
  Support bazelisk (bazelbuild#346)
  Generating CHANGELOG.md for release v0.11.2
  Adds passthrough for "--compilation_mode" and "-c" (bazelbuild#348)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try resolve bazel binary from @bazel/bazelisk installed locally
3 participants