Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tool to update go.mod for modules #364

Merged
merged 3 commits into from
Nov 4, 2023
Merged

Adding tool to update go.mod for modules #364

merged 3 commits into from
Nov 4, 2023

Conversation

javuto
Copy link
Collaborator

@javuto javuto commented Nov 4, 2023

Adding new tool to update all modules. Its usage can be to recursively find go.mod and update or to specify the directory of the module:

$ ./tools/update-modules.sh
[+] Finding all go.mod files...
[+] Found 19 modules
[+] Updating module ./metrics
go: downloading golang.org/x/text v0.14.0
go: downloading golang.org/x/sys v0.14.0
go: upgraded github.com/jmpsec/osctrl/types v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Updating module ./settings
go: upgraded github.com/jmpsec/osctrl/types v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./types
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./cache
go: upgraded github.com/jmpsec/osctrl/types v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Updating module ./nodes
/Users/javier/Github/osctrl
[+] Updating module ./environments
go: upgraded github.com/jmpsec/osctrl/settings v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/types v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/version v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./admin/auth
/Users/javier/Github/osctrl
[+] Updating module ./admin/sessions
go: upgraded github.com/jmpsec/osctrl/environments v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./admin/handlers
go: upgraded github.com/jmpsec/osctrl/cache v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/environments v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/metrics v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/tags v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Updating module ./queries
go: upgraded github.com/jmpsec/osctrl/nodes v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./utils
go: upgraded github.com/google/uuid v1.3.0 => v1.4.0
/Users/javier/Github/osctrl
[+] Updating module ./backend
go: downloading github.com/jackc/pgx/v5 v5.5.0
go: downloading github.com/jackc/puddle/v2 v2.2.1
go: downloading github.com/jackc/puddle v1.3.0
go: downloading golang.org/x/sync v0.5.0
go: upgraded github.com/jackc/pgx/v5 v5.4.3 => v5.5.0
go: upgraded golang.org/x/sync v0.3.0 => v0.5.0
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Updating module ./tags
go: upgraded github.com/jmpsec/osctrl/nodes v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./tls/handlers
go: downloading github.com/aws/aws-sdk-go v1.47.3
go: downloading github.com/jackc/puddle v1.2.0
go: upgraded github.com/aws/aws-sdk-go v1.47.2 => v1.47.3
go: upgraded github.com/jackc/pgx/v5 v5.4.3 => v5.5.0
go: upgraded github.com/jmpsec/osctrl/cache v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/carves v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/environments v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/logging v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/metrics v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/tags v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/version v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Updating module ./version
/Users/javier/Github/osctrl
[+] Updating module ./users
go: upgraded github.com/jmpsec/osctrl/environments v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/types v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
/Users/javier/Github/osctrl
[+] Updating module ./api/handlers
/Users/javier/Github/osctrl
[+] Updating module ./carves
go: upgraded github.com/jmpsec/osctrl/settings v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/types v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded github.com/jmpsec/osctrl/utils v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Updating module ./logging
go: upgraded github.com/aws/aws-sdk-go v1.47.2 => v1.47.3
go: upgraded github.com/jackc/pgx/v5 v5.4.3 => v5.5.0
go: upgraded github.com/jmpsec/osctrl/cache v0.0.0-20231103085153-d61207d0ce25 => v0.0.0-20231104125212-d6ff03b91b7b
go: upgraded golang.org/x/sys v0.13.0 => v0.14.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
/Users/javier/Github/osctrl
[+] Done
$ ./tools/update-modules.sh environments
[+] Using module environments
[+] Updating module environments
/Users/javier/Github/osctrl
[+] Done

@javuto javuto added the dependencies Dependencies related issues label Nov 4, 2023
@javuto javuto merged commit adb81d0 into main Nov 4, 2023
48 checks passed
@javuto javuto deleted the tool-update-gomods branch November 4, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependencies related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant