Skip to content

dependencies: upgrade ginkgo to v2#6

Merged
tuunit merged 2 commits intooauth2-proxy:mainfrom
dolmen-go:upgrade-ginkgo-to-v2
Mar 29, 2025
Merged

dependencies: upgrade ginkgo to v2#6
tuunit merged 2 commits intooauth2-proxy:mainfrom
dolmen-go:upgrade-ginkgo-to-v2

Conversation

@dolmen
Copy link
Contributor

@dolmen dolmen commented Mar 11, 2025

Upgrade ginko to v2

Description

  1. go get github.com/onsi/ginkgo/v2@latest
  2. go get github.com/onso/gomega@latest
  3. Fix reference-gen/*_test.go to use ginkgo/v2
  4. go mod tidy
  5. go get k8s.io/klog/v2@latest # fix nil logger errors
  6. go mod tidy
  7. go mod edit -go=1.23 # instead of 1.23.0
  8. go mod tidy

Motivation and Context

Dependencies are outdated. Those dependencies are affecting the go.mod of oauth2-proxy. Among others, they bring a dependency on gopkg.in/yaml.v2.

How Has This Been Tested?

go test ./...

@dolmen
Copy link
Contributor Author

dolmen commented Mar 18, 2025

Cc: @tuunit This is somewhat related to oauth2-proxy/oauth2-proxy#2982 : this is also a dependency cleanup.

dolmen added 2 commits March 27, 2025 22:29
Upgrade ginko to v2:
1. go get github.com/onsi/ginkgo/v2@latest
2. go get github.com/onso/gomega@latest
3. Fix reference-gen/*_test.go to use ginkgo/v2
4. go mod tidy
4. go get k8s.io/klog/v2@latest # fix nil logger errors
5. go mod tidy
6. go mod edit -go=1.23 # instead of 1.23.0
7. go mod tidy
The "toolchain go1.24.1" had been automatically added in go.mod. Let's downgrade
to match the "go" directive.

go mod edit -toolchain=go1.23.7
@dolmen dolmen force-pushed the upgrade-ginkgo-to-v2 branch from 9652043 to 891ac1c Compare March 27, 2025 21:29
@dolmen
Copy link
Contributor Author

dolmen commented Mar 27, 2025

@tuunit reference-gen/go.mod now requires only Go 1.23.

@tuunit tuunit merged commit 870eb64 into oauth2-proxy:main Mar 29, 2025
3 checks passed
@dolmen dolmen deleted the upgrade-ginkgo-to-v2 branch April 2, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants