-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use go run
for tool dependencies, require go 1.17
#18874
Conversation
93df019
to
970c44b
Compare
|
|
Small tweak pushed that will speed up the |
532dd1a
to
8bc86bf
Compare
This syntax of go run requires 1.17, so I think we need to raise |
Gitea seems to follow to only support the 2 latest go versions, given 1.18 should be release soon this PR can wait until 1.18 has been dropped? |
Yes, I suppose so, but it's not a hard dependency, it will still build on 1.16 too, just the tooling used on CI and by developers locally will require 1.17. |
Should it be marked as breaking? |
This ensures the tools only run in the versions we've tested and it also does not polute PATH with those tools so they are truly isolated. This syntax of `go run` requires go 1.17, so the minimum version is set accordingly. Fixes: go-gitea#18867
go run
to isolate tool dependenciesgo run
for tool dependencies, require go 1.17
I've bumped the minimum go version to 1.17 now. I guess if we are strict, this has to wait until go 1.18 release, which should be imminent. |
https://groups.google.com/g/golang-announce/c/-cp44ypCT5s/m/wmegxkLiAQAJ |
* giteaoffical/main: rm .sample hooks which aren't used (go-gitea#19101) use go1.18 to build gitea (go-gitea#19099) Use `go run` for tool dependencies, require go 1.17 (go-gitea#18874) Update golang.org/x/crypto (go-gitea#19097) Handle email address not exist. (go-gitea#19089)
This ensures the tools only run in the versions we've tested and it also does not polute PATH with those tools so they are truly isolated. This syntax of `go run` requires go 1.17, so the minimum version is set accordingly. Fixes: go-gitea#18867 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Backport #19120 Backport #19099 Backport #18874 Backport #18420 Backport #19128 Backport #18270 Bump to build with go1.18 Co-authored-by: techknowlogick <techknowlogick@gitea.io> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Jelle Hulter <jellehulter@gmail.com>
This ensures the tools only run in the versions we've tested and it also does not polute PATH with those tools so they are truly isolated. This syntax of `go run` requires go 1.17, so the minimum version is set accordingly. Fixes: go-gitea#18867 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
-> #19099 did surpass it |
This ensures the tools only run in the versions we've tested and the method also does not polute
PATH
with those tools so they are truly isolated. Another benefit here is that tool dependencies are now all defined in one spot, making it easier to update them.Fixes: #18867