Nix + Go | 223 Members | |
| Go packaging for and with Nixpkgs. | Be excellent to each other. | 50 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Aug 2023 | ||
| remember when you add the patch you need to invalidate the vendorSha256 otherwise it might keep using the already fetched copy | 09:03:54 | |
I tried checking out cloning https://github.com/mautrix/discord and running go mod tidy, but it didn't produce any different result. The same with discordgo...However, I did notice that the definition for crypto in the discordgo repo seems a bit odd: golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b. Could this have something to do with the error I'm getting? | 09:07:41 | |
* I tried checking out cloning https://github.com/mautrix/discord and running go mod tidy, but it didn't produce any different result. The same with discordgo...However, I did notice that the definition for crypto in the discordgo repo seems a bit odd: golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b. Could this have something to do with the error I'm getting? | 09:07:55 | |
* I tried checking out cloning https://github.com/mautrix/discord and running go mod tidy, but it didn't produce any diff in git. The same with discordgo...However, I did notice that the definition for crypto in the discordgo repo seems a bit odd: golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b. Could this have something to do with the error I'm getting? | 09:08:17 | |
* I tried cloning https://github.com/mautrix/discord and running go mod tidy, but it didn't produce any diff in git. The same with discordgo...However, I did notice that the definition for crypto in the discordgo repo seems a bit odd: golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b. Could this have something to do with the error I'm getting? | 09:08:28 | |
| yeah. that's pre go modules by the looks of it | 09:10:02 | |
|
https://pkg.go.dev/golang.org/x/crypto#section-readme | 09:10:39 | |
| oh it does have x/crypto v0.12.0 in the go.mod so it shouldn't cause any issue there | 09:11:27 | |
| maybe check which copy of go you're using for build and tidy | 09:12:36 | |
| It's go v1.20.7 in both cases. | 09:13:57 | |
| Mhh, I guess I'll just try another version. | 09:15:28 | |
| I just built what you built and got
I don't think you invalidated your vendorsha256 when you changed something so it's using an old copy of the modules that's out of sync | 09:17:34 | |
| Thats weird. I removed the vendorSha and got the same one back... ``` error: hash mismatch in fixed-output derivation '/nix/store/f41z9cabgm4qqk6g78vx2ig1s662f36n-discord-0.6.1-go-modules.drv': specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= got: sha256-GKUy/HYuPyaUNzfAD7NQWH+tuwcoQhWU4bfxhOpIM0Y= ``` | 09:20:00 | |
| * Thats weird. I removed the vendorSha and got the same one back... ` error: hash mismatch in fixed-output derivation '/nix/store/f41z9cabgm4qqk6g78vx2ig1s662f36n-discord-0.6.1-go-modules.drv': specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= got: sha256-GKUy/HYuPyaUNzfAD7NQWH+tuwcoQhWU4bfxhOpIM0Y= ` | 09:20:09 | |
| * Thats weird. I removed the vendorSha and got the same one back... ``` error: hash mismatch in fixed-output derivation '/nix/store/f41z9cabgm4qqk6g78vx2ig1s662f36n-discord-0.6.1-go-modules.drv': specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= got: sha256-GKUy/HYuPyaUNzfAD7NQWH+tuwcoQhWU4bfxhOpIM0Y= ``` | 09:20:17 | |
| you're on nixos or using nix on a different distro? | 09:20:54 | |
| I'm on NixOS unstable. My nix-info: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix Super) 2.18.0pre20230813_65e8aba, channels(root): "nixos-21.11pre324423.34ad3ffe08a, nixpkgs-21.11pre325327.30f73c6493b", channels(moritz): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos | 09:21:39 | |
| 21.11 👀 | 09:22:21 | |
| Oh wait 😧 | 09:22:52 | |
| FYI this builds for me using latest nixpkgs repo and
| 09:24:43 | |
| Mhh it seems I still had the channels set from before I switched to flakes... Okay, thanks. I guess then there is just something wrong on my end. Sorry for wasting your time... | 09:25:49 | |
| np. maybe try run this quickly nix run github:nixos/nixpkgs/nixpkgs-unstable#nix-info -- -m | 09:28:33 | |
| 09:29:15 | |
*
| 09:29:41 | |
| I guess I really just need to setup my channels to follow the flake input. | 09:30:13 | |
| hmm ok so I thought it might be sandboxing disabled but it's on. is this file in a clone of nixpkgs? how are you running | 09:31:08 | |
I'm running:nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}' | 09:32:05 | |
| yeah so that's pulling nixpkgs from your channels which will be super old | 09:32:31 | |
<nixpkgs> is channels syntax | 09:32:51 | |
| Ahhh, that makes perfect sense then... | 09:33:24 | |