!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

221 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.47 Servers

Load older messages


SenderMessageTime
13 Jul 2023
@qbit:tapenet.org@qbit:tapenet.orghttps://github.com/golang/vuln/compare/v0.2.0...v1.0.0.patch i had to double check (make sure i didn't mess up :D)16:05:48
@qbit:tapenet.org@qbit:tapenet.org (also ... and .diff/.patch are one of my fav features of gh) 16:06:39
@eyjhb:eyjhb.dk@eyjhb:eyjhb.dkWhops https://pkg.go.dev/vuln/GO-2023-187818:09:03
@eyjhb:eyjhb.dk@eyjhb:eyjhb.dkFound in my code18:09:06
15 Jul 2023
@jarkad:tchncs.de@jarkad:tchncs.de joined the room.19:27:28
18 Jul 2023
@kirillrdy:matrix.orgkirillrdy set a profile picture.12:22:39
22 Jul 2023
@jarkad:tchncs.de@jarkad:tchncs.de left the room.02:13:30
23 Jul 2023
@vcunat:matrix.orgvcunat joined the room.11:52:46
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/242905#issuecomment-164687793716:17:05
@artturin:matrix.orgArtturin

the last message from go mod vendor is

k2tf> go: replacement path ./vendor/k8s.io/cli-runtime/pkg/kustomize/k8sdeps/transformer inside vendor directory
16:19:10
@artturin:matrix.orgArtturin

tinygo.goModules

error: illegal path references in fixed-output derivation '/nix/store/06v7rn03bgsnzvv89dn8i2a6kap1fijl-tinygo-0.26.0-goModules.drv'
16:28:47
@artturin:matrix.orgArtturinThese modules built correctly on older go versions but not on newer go versions16:29:11
@artturin:matrix.orgArtturinHow can vendoring break version to version, Go damn16:29:49
@artturin:matrix.orgArtturin * How can vendoring break in multiple ways version to version, Go damn16:30:43
@qbit:tapenet.org@qbit:tapenet.orgIs there a rewrite in the go.mod?17:17:55
@atalii:matrix.org@atalii:matrix.org joined the room.17:58:44
@atalii:matrix.org@atalii:matrix.org is it okay if i ask a quick question about buildGoModule here? i'm reading through the sourcue to get an idea of how to handle deps for a different language and build system, and it seems that the buildPhase of buildGoModule calls go mod vendor or go mod package. that seems to require the network, but it also seems to work in the sandbox. would anyone be able to tell me what i'm missing here? thanks :) 18:00:56
@qbit:tapenet.org@qbit:tapenet.orgthe vendor stuff gets put in to its own derivation which gets linked in at build 18:26:51
@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

Show newer messages


Back to Room ListRoom Version: 9