configs/zsh: add safe update function for go deps

thanks @jrick
This commit is contained in:
Aaron Bieber 2024-07-10 09:27:24 -06:00
parent a3c84f66cc
commit 5549ab964a
No known key found for this signature in database

View File

@ -53,6 +53,13 @@
nix shell $opts
}
go_safe_update_deps() {
for i in $(go list -m -f '{{if not (or .Indirect .Main)}}{{.Path}}{{end}}' all); do
go get -u=patch $i
done
go mod tidy
}
go_update_deps() {
for i in $(go list -m -f '{{if not (or .Indirect .Main)}}{{.Path}}{{end}}' all); do
go get -u $i