Skip to content

Support and document testing on macOS with CLT #11899

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Jul 8, 2025

See individual commits.

The `jq` invocation in 501618d was not
correct for macOS and Windows where the first elements were .pkg and
.msi packages respectively, neither of which are supported by
download_and_extract, resulting in:

```
Error in download_and_extract: Expected a file with a .zip, .jar, .war, .aar, .nupkg, .tar, .tar.gz, .tgz, .tar.xz, , .tar.zst, .tzst, .tar.bz2, .tbz, .ar or .deb suffix (got ...)
```

Update the `jq` command to select only .tar.gz and update the list.
@tamird
Copy link
Contributor Author

tamird commented Jul 8, 2025

@EtiennePerot PTAL

- Document bazel 7 requirement and how to use it on macOS.
- Override `build_bazel_apple_support` to pick up support for CLT-only
  builds.
- Fix nogo CLI build on macOS by using `"golang.org/x/term".IsTerminal`
  which works around `unix.TCGETS` not being defined there.
@tamird tamird changed the title Use only .tar.gz Go SDK archives Support and document testing on macOS with CLT Jul 8, 2025
@EtiennePerot EtiennePerot self-requested a review July 8, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants