mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-16 13:32:03 +09:00
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:
committed by
Kristoffer Dalby
parent
0c0b0c68a6
commit
cbbfe613b8
@@ -210,7 +210,7 @@
|
|||||||
(pkgs.writeShellScriptBin
|
(pkgs.writeShellScriptBin
|
||||||
"go-mod-update-all"
|
"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
|
go mod tidy
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user