feat: update all go modules and add a command to bump modules
This commit is contained in:
12
.devcontainer/bin/bump-modules
Executable file
12
.devcontainer/bin/bump-modules
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
pushd /root/go/src/github.com/dokku/dokku/plugins/ >/dev/null || exit 1
|
||||
for plugin in *; do
|
||||
if [[ ! -f "/root/go/src/github.com/dokku/dokku/plugins/$plugin/go.mod" ]]; then continue; fi
|
||||
echo "$plugin"
|
||||
pushd /root/go/src/github.com/dokku/dokku/plugins/$plugin || exit 1
|
||||
go mod tidy
|
||||
go mod download
|
||||
popd >/dev/null || exit 1
|
||||
done
|
||||
popd >/dev/null || exit 1
|
||||
Reference in New Issue
Block a user