configs/zsh: add safe update function for go deps
thanks @jrick
This commit is contained in:
parent
a3c84f66cc
commit
5549ab964a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user