flake: skip comments in go-mod-update-all

Comment lines inside a require block are tab-indented, so the scrape fed
`//` tokens to go get -u.
This commit is contained in:
Kristoffer Dalby
2026-08-25 09:42:53 +00:00
committed by Kristoffer Dalby
parent 0c0b0c68a6
commit cbbfe613b8
+1 -1
View File
@@ -210,7 +210,7 @@
(pkgs.writeShellScriptBin
"go-mod-update-all"
''
cat go.mod | ${pkgs.ripgrep}/bin/rg "\t" | ${pkgs.ripgrep}/bin/rg -v indirect | ${pkgs.gawk}/bin/awk '{print $1}' | ${pkgs.findutils}/bin/xargs go get -u
cat go.mod | ${pkgs.ripgrep}/bin/rg "\t" | ${pkgs.ripgrep}/bin/rg -v '^\s*//' | ${pkgs.ripgrep}/bin/rg -v indirect | ${pkgs.gawk}/bin/awk '{print $1}' | ${pkgs.findutils}/bin/xargs go get -u
go mod tidy
'')
];