Skip to content

Commit

Permalink
add script to update all deps
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Feb 9, 2024
1 parent 22a2267 commit e6f6683
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@
go run tailscale.com/cmd/nardump --sri "$OUT"
rm -rf "$OUT"
'')

(pkgs.writeShellScriptBin
"go-mod-update-all"
''
cat go.mod | ${pkgs.silver-searcher}/bin/ag "\t" | ${pkgs.silver-searcher}/bin/ag -v indirect | ${pkgs.gawk}/bin/awk '{print $1}' | ${pkgs.findutils}/bin/xargs go get -u
go mod tidy
'')
];

shellHook = ''
Expand Down

0 comments on commit e6f6683

Please sign in to comment.