File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 138
138
name = "coder-${ osArch } " ;
139
139
# Updated with ./scripts/update-flake.sh`.
140
140
# This should be updated whenever go.mod changes!
141
- vendorHash = "sha256-biJ4rUJ0lmWqUQLAg0QqyIAaLuZ7e//+loWJIefnrNw =" ;
141
+ vendorHash = "sha256-QKgwsJaESo3/7Q5+Fntl2uK6idkn8BT6EAHO8IYlMJQ =" ;
142
142
proxyVendor = true ;
143
143
src = ./. ;
144
144
nativeBuildInputs = with pkgs ; [ getopt openssl zstd ] ;
172
172
'' ;
173
173
} ;
174
174
packages = {
175
+ proto_gen_go = proto_gen_go_1_30 ;
175
176
all = pkgs . buildEnv {
176
177
name = "all-packages" ;
177
178
paths = devShellPackages ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ sed -i "s#\(vendorHash = \"\)[^\"]*#\1${HASH}#" ./flake.nix
32
32
33
33
# Update protoc-gen-go sha256
34
34
echo " Updating protoc-gen-go sha256..."
35
- PROTOC_GEN_GO_REV=$( grep -A 20 ' pkgs.buildGoModule rec ' flake. nix | grep -A 10 ' repo = "protobuf-go" ' | grep ' rev = "v ' | sed ' s/.*rev = "\(.*\)".*/\1/ ' )
35
+ PROTOC_GEN_GO_REV=$( nix eval --extra-experimental-features nix-command --extra-experimental-features flakes --raw . # proto_gen_go.rev )
36
36
echo " protoc-gen-go version: $PROTOC_GEN_GO_REV "
37
37
PROTOC_GEN_GO_SHA256=$( nix-prefetch-git https://github.com/protocolbuffers/protobuf-go --rev " $PROTOC_GEN_GO_REV " | jq -r .hash)
38
38
sed -i " s#\(sha256 = \" \)[^\" ]*#\1${PROTOC_GEN_GO_SHA256} #" ./flake.nix
You can’t perform that action at this time.
0 commit comments