-
-
Notifications
You must be signed in to change notification settings - Fork 148
build: upgrade go
directive in go.mod
to 1.17
#423
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
Conversation
This commit enables support for module graph pruning and lazy module loading for projects that are at Go 1.17 or higher. Reference: https://go.dev/ref/mod#go-mod-file-go Reference: https://go.dev/ref/mod#graph-pruning Reference: https://go.dev/ref/mod#lazy-loading Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
go 1.16 | ||
go 1.17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary? IMO it is better to keep support for older go versions as long as possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I'm sorry I've just read pr description 😀
require ( | ||
github.com/AllenDang/go-findfont v0.0.0-20200702051237-9f180485aeb8 | ||
github.com/AllenDang/imgui-go v1.12.1-0.20211220065947-c3e78789ac41 | ||
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 | ||
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect | ||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211213063430-748e38ca8aec | ||
github.com/go-resty/resty/v2 v2.7.0 | ||
github.com/kylelemons/godebug v1.1.0 // indirect | ||
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 | ||
github.com/sahilm/fuzzy v0.1.0 | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d | ||
) | ||
|
||
require ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is there a second require
directive 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, forgot to read pr description XD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #423 +/- ##
======================================
Coverage 2.94% 2.94%
======================================
Files 30 30
Lines 3092 3092
======================================
Hits 91 91
Misses 3001 3001 Continue to review full report at Codecov.
|
This PR upgrades the
go
directive ingo.mod
file by runninggo mod tidy -go=1.17
to enable module graph pruning and lazy module loading.Note 1: This does not prevent users with earlier Go versions from successfully building packages from this module.
Note 2: The additional
require
directive is used to record indirect dependencies for Go 1.17 or higher, see https://go.dev/ref/mod#go-mod-file-go.