!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

240 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.52 Servers

Load older messages


SenderMessageTime
23 Jul 2023
@qbit:tapenet.org@qbit:tapenet.orgalso go will print out "downloading..." even though it's using the vendor'd stuff18:27:05
@qbit:tapenet.org@qbit:tapenet.orghttps://github.com/qowoz/nixpkgs/blob/master/pkgs/build-support/go/module.nix#L5518:27:06
@atalii:matrix.org@atalii:matrix.orgOkay - I think I'm misunderstanding quite a bit, then. where does the builder fetch the sources to vendor?18:30:40
@qbit:tapenet.org@qbit:tapenet.org it's part of the main derivation, if you set vendorHash = ""; it will rebuild the ${name}-go-modules stuff 18:33:29
@qbit:tapenet.org@qbit:tapenet.orgare you getting an error ?18:33:43
@atalii:matrix.org@atalii:matrix.orgno; just trying to understand the build process so i can do something like it for a different language. my understanding is that first go-modules is built, which runs go mod vendor or go mod download, and that output is then linked into the main derivation?18:35:21
@atalii:matrix.org@atalii:matrix.org^oh, and, if this is correct... how is that possible? go mod vendor downloads the sources for deps (right?), which shouldn't be able to happen in the sandbox?18:41:26
@qbit:tapenet.org@qbit:tapenet.orgi am not sure on the download side of things 21:48:06
@artturin:matrix.orgArtturin
In reply to @atalii:matrix.org
^oh, and, if this is correct... how is that possible? go mod vendor downloads the sources for deps (right?), which shouldn't be able to happen in the sandbox?
It uses a fixed output derivation which can access network
22:26:57
@artturin:matrix.orgArtturin
In reply to @atalii:matrix.org
^oh, and, if this is correct... how is that possible? go mod vendor downloads the sources for deps (right?), which shouldn't be able to happen in the sandbox?
* go-modules uses a fixed output derivation which can access network
22:27:25
@artturin:matrix.orgArtturin * go-modules is a fixed output derivation which can access network 22:27:30
@qbit:tapenet.org@qbit:tapenet.orgah, so FOD works because we know what the hash will be? 22:40:28
@qbit:tapenet.org@qbit:tapenet.orgso network access is .. ok-ish22:40:40
@qbit:tapenet.org@qbit:tapenet.org?22:40:59
@qbit:tapenet.org@qbit:tapenet.orgwhat denotes that it's FOD?22:44:02
@qbit:tapenet.org@qbit:tapenet.orgor.. i guess.. how would one know it was FOD?22:44:53
@atalii:matrix.org@atalii:matrix.org
In reply to @artturin:matrix.org
go-modules is a fixed output derivation which can access network
ah, thank you - same question as qbit, how does nix 'know' its fixed?
22:45:51
@artturin:matrix.orgArtturinhttps://nixos.org/manual/nix/stable/language/advanced-attributes.html?highlight=fixed-output-#adv-attr-outputHash22:47:12
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/9ca0bd9db35fee3473dec48dbb163de7100e0455/pkgs/build-support/go/module.nix#L142-L14422:47:55
@artturin:matrix.orgArtturin tali: qbit 22:47:58
@artturin:matrix.orgArtturin * go-modules is a fixed-output derivation which can access network 22:48:31
@atalii:matrix.org@atalii:matrix.orgah, look at that - thanks so much!22:49:23
@qbit:tapenet.org@qbit:tapenet.orgahh, ty! :D22:50:33
25 Jul 2023
@federicodschonborn:matrix.orgFederico Damián Schonborn changed their profile picture.01:57:03
27 Jul 2023
@ribosomerocker:matrix.orgribosomerocker joined the room.03:03:22
1 Aug 2023
@cafkafk:nixos.devChristina Sørensen joined the room.11:11:02
8 Aug 2023
@qbit:tapenet.org@qbit:tapenet.org \o/ 1.21.0 16:08:13
9 Aug 2023
@aog_:matrix.orgaog joined the room.15:54:44
13 Aug 2023
@10leej:matrix.orgnevoyu joined the room.01:25:24
@katexochen:matrix.orgPaul Meyer (katexochen) joined the room.11:48:05

Show newer messages


Back to Room ListRoom Version: 9