Nix + Go | 235 Members | |
| Go packaging for and with Nixpkgs. | Be excellent to each other. | 50 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Apr 2024 | ||
| * Hey y'all I'm trying to use the externalPlugins with coredns. I can't seem to add This is the error I'm seeing https://gist.github.com/anthr76/5d5f43ecc2791c1d1859a6d0dcaf0b67 This is what my code looks like:
| 02:39:53 | |
| * Hey y'all I'm trying to use the externalPlugins with coredns. I can't seem to add This is the error I'm seeing https://gist.github.com/anthr76/5d5f43ecc2791c1d1859a6d0dcaf0b67 This is what my code looks like:
| 02:40:10 | |
| I've had no problems with k8s_gateway. Anyone have any suggestions or see anything glaring wrong? | 02:41:10 | |
could you try overrideAttrs-ing that with modBuildPhase = (old.modBuildPhase) + "go mod tidy && go mod vendor"? | 02:54:22 | |
| Great idea. I’ll give it a go tomorrow more int | 03:07:36 | |
| * Great idea. I’ll give it a go tomorrow morning | 03:07:42 | |
In reply to @diamondburned:matrix.org I ended up seeing the same error :( Which doesn't make much sense because I see the plugins are down before hand | 12:34:19 | |
In reply to @diamondburned:matrix.org* I ended up seeing the same error :( Which doesn't make much sense because I see the plugins are down before hand https://github.com/NixOS/nixpkgs/blob/58a1abdbae3217ca6b702f03d3b35125d88a2994/pkgs/servers/dns/coredns/default.nix#L33 | 12:34:21 | |
| 15:28:52 | ||
| 17:16:43 | ||
| 17:28:05 | ||
| I've opened a bug report here https://github.com/NixOS/nixpkgs/issues/307750 I also tried taking a overlay approach in a more manual manner to understand what's breaking where but it seems like my
| 18:41:20 | |
| 1 May 2024 | ||
| 15:06:38 | ||
| 2 May 2024 | ||
| 20:41:06 | ||
| 21:07:39 | ||
| 4 May 2024 | ||
| 06:49:44 | ||
| 20:56:31 | ||
| 7 May 2024 | ||
| 06:50:12 | ||
| 8 May 2024 | ||
| 22:24:36 | ||
| 9 May 2024 | ||
| 05:57:18 | ||
I'm confused about gomuks... the package source includes olm in buildInputs, but it doesn't seem to have encryption support on my machine? Is it just me somehow? | 06:01:38 | |
I built a vm to test it out, and I believe what happened is it built without encryption support on my machine because I didn't have gcc or any C compiler installed the first time I installed it. In the VM, I included just gccandgoin environment.systemPackages and it built with encryption support still fine. But even though I havegcc` installed on my real machine now, there's still no encryption support. | 21:05:28 | |
* I built a vm to test it out, and I believe what happened is it built without encryption support on my machine because I didn't have gcc or any C compiler installed the first time I installed it. In the VM, I included just gccandgoin environment.systemPackages and it built with encryption support still fine. But even though I havegcc\ installed on my real machine now, there's still no encryption support. | 21:05:37 | |
* I built a vm to test it out, and I believe what happened is it built without encryption support on my machine because I didn't have gcc or any C compiler installed the first time I installed it. In the VM, I included just gccandgoin environment.systemPackages and it built with encryption support still fine. But even though I havegcc installed on my real machine now, there's still no encryption support. | 21:05:50 | |
| IDK, this doesn't seem quite right to me. Shouldn't the package check for a C compiler if it needs one, rather than just building a different version? How is stuff like this with CGo usually handled? | 21:07:45 | |
add CGO_ENABLED = 1; to your buildGoModule attrset | 21:12:54 | |
cgo is disabled by default, and any source files that exclude cgo build tags won't be used | 21:14:08 | |
| at least i think it is disabled by default. i set it for the cgo things i build | 21:19:20 | |
| if it's not already in the nixpkgs file and that does indeed fix the issue, then you should file a PR | 22:01:34 | |
| it might be a regression, iirc Go now disables Cgo by default unless it detects CC in the env | 22:01:51 | |