-
-
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
Can't compile go project with cgo #52706
Comments
I don't know the scope of the issue (I don't remember having encountered it) and whether we can/should fix it, but you can probably work around it by running |
The same file already exists, so I don' know why tries to recompile it. Usually this happens when build systems are injecting |
Also tracked here: golang/go#24674 |
|
It seems that there is not much we can do about that but stop using |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
The solution is to run go in a nix-shell: https://nixos.wiki/wiki/Go#Using_cgo_on_NixOS |
Issue description
Steps to reproduce
Install Go
Attempt to compile project that requires cgo. (Not with nix. just regularly)
Technical details
"x86_64-linux"
Linux 4.18.0, NixOS, 19.03pre162671.44b02b52ea6 (Koi)
yes
yes
nix-env (Nix) 2.1.3
"nixos-19.03pre162671.44b02b52ea6, nixpkgs-19.03pre155263.20c4986c4dd"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: