-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
temporal-cli: Fix Darwin builds with sandbox enabled #242721
temporal-cli: Fix Darwin builds with sandbox enabled #242721
Conversation
What is the actual error that is printed in the logs? |
The
but the
|
@tjni TIL about Indeed, the |
@tjni I cannot reproduce either succeeding with only |
We can see from the code that it also enables access to some other things as well, but I don't know why it isn't enabled by default :)
Yes, I don't know how to move past this yet aside from disabling the test (and I don't even know how to do that properly in buildGoModule). |
You're right, I just checked again. Adding
but still runs into the same error. I jumped the gun there, sorry for the noise! |
@tjni Go tests may be skipped with e.g. So I felt more ambitious today, have pushed a version that does not disable tests and instead patches the dependency in the go-modules drv (along with opening a PR upstream) and applied the local net exception. The builds are now succeeding. |
a0e7816
to
bb66cd8
Compare
Unfortunately one of the issues is within a dependency, so have to do some awkward patching of the go-modules. This patch is pending merge to the upstream dep and will hopefully eventually trickle down. We do *not* optionally apply the patch for Darwin only because then we would have a different hash per system, which seems even more awkward.
bb66cd8
to
77f010e
Compare
Result of 1 package built:
Built with sandbox enabled. |
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.
LGTM!
Successfully created backport PR for |
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)