-
Notifications
You must be signed in to change notification settings - Fork 352
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
Building a Go program using Bazel fails on macOS #1099
Comments
I've tried directly adding CoreFoundation (via #508), but it didn't fix anything.
|
I'm not familiar with Bazel, could we somehow reproduce the issue without bazel? That would narrow it down and allow me to help. |
It appears the issue is with Bazel itself. Downgrading to Bazel 6.5.0 fixes the issue. Upgrading back to Bazel 7.0.1 causes the issue to reappear. |
After reading through the Bazel release notes, I've found bazel-contrib/rules_go#3793 which seems like the issue. I'll reopen this if it turns out devenv needs to change something. |
I'm reopening this issue as I've run into another issue with the interaction with nix / devenv / bazel. Sadly, I've been unable to find a fix and am considering migrating off devenv. I've tried installing the following nixpkgs without any luck. Install a combination of the following nixpkgs
I've also tried to enable C++ support in devenv
I've also tried the macOS example from the docs. I noticed a similar issue (#1641) where installing |
Also good be related to this work which landed this year https://discourse.nixos.org/t/the-darwin-sdks-have-been-updated/55295/7 |
I've confirmed that this is a Bazel issue, as the correct headers are referenced in
|
Describe the bug
I can no longer build my Go project using Bazel after upgrading to devenv 1.3.1
While I've pushed a repository with a full reproduction, I realize there are still many moving pieces. This could be an issue with Devenv, Nix, Bazel, or rules_go. I'm having a difficult time figuring out where the issue lies, so I thought I'd start here.
To reproduce
git clone https://github.com/kyleconroy/devenv-bazel-go-broken cd devenv-bazel-go-broken devenv shell bazelisk build //hello
Outside the devenv shell, this runs successfully
Once I've activated the shell, it fails.
Version
I'm running macOS 14.7.1 and devenv 1.3.1.
The text was updated successfully, but these errors were encountered: