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
viper go.mod has dependency issues from 1.17.0 #1772
Comments
👋 Thanks for reporting! A maintainer will take a look at your issue shortly. 👀 In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues. ⏰ If you have a couple minutes, please take some time and share your thoughts: https://forms.gle/R6faU74qPRPAzchZ9 📣 If you've already given us your feedback, you can still help by spreading the news, https://twitter.com/sagikazarmark/status/1306904078967074816 Thank you! ❤️ |
This commit introduced the slog: Then the viper from v1.17.0 will require golang 1.20. Roll back the viper to v1.16.0 works for golang 1.18 for my project. |
As per the Go version support policy we support the last two Go versions. We may have forgotten to update the go.mod file. |
Yes, the mod file after tag 1.7.0 should be updated from go 1.18 to 1.20. It is recommended to add tag 1.7.1 1.8.3 for this purpose. |
Not sure how that would change anything. If a transitive dependency requires a higher Go version, that's virtually the same as Viper requiring it as well. I doubt Go would behave differently. |
Preflight Checklist
Viper Version
1.17.0
Go Version
1.18
Config Source
Files
Format
TOML
Repl.it link
No response
Code reproducing the issue
No response
Expected Behavior
go run main.go success without error
Actual Behavior
go run main.go error:
The reason is that github.com/spf13/viper@v1.17.0 only requires go 1.18, but the dependency github.com/sagikazarmark/slog-shim v0.1.0 requires go 1.20
Steps To Reproduce
Additional Information
No response
The text was updated successfully, but these errors were encountered: