feat: update all go modules and add a command to bump modules

This commit is contained in:
Jose Diaz-Gonzalez
2023-11-12 14:28:06 -05:00
parent 247591af8e
commit 5e9cb3f157
37 changed files with 141 additions and 129 deletions

12
.devcontainer/bin/bump-modules Executable file
View 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