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

Outdated vendor/golang.org software #4817

Closed
1 of 7 tasks
tuxillo opened this issue Aug 28, 2018 · 9 comments
Closed
1 of 7 tasks

Outdated vendor/golang.org software #4817

tuxillo opened this issue Aug 28, 2018 · 9 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile

Comments

@tuxillo
Copy link
Contributor

tuxillo commented Aug 28, 2018

  • Gitea version (or commit ref): 1.5.0
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

While trying to build gitea on other OSes (SmartOS, NetBSD, ...) I encountered some errors and after checking, it is related to the golang/sys version gitea distributes. Apparently it hasn't been updated in a while.

I've based the list below in the "revisions" found in Gopkg.lock which I assume they were generated by some command based on Gopkg.toml.

Vendor software Date Version
golang.org/x/sys 2016-07-15 golang/sys@a646d33
golang.org/x/oauth2 2016-08-25 golang/oauth2@c10ba27
golang.org/x/net 2017-01-14 golang/net@f249948
golang.org/x/sync 2017-03-17 golang/sync@5a06fca
golang.org/x/text 2017-06-17 golang/text@2bf8f2a
golang.org/x/crypto 2018-04-18 golang/crypto@12dd70c

Before trying to send a PR for an updated golang.org/x/sys, is there a procedure to correctly upgrade vendor software? I would assume some test need to be run and passed first, etc.

Also, maybe it would be good to have an automatically generated list of the vendor software and dates of the revisions used, just an idea 😃

@techknowlogick techknowlogick added the topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile label Aug 29, 2018
@techknowlogick
Copy link
Member

Thanks for creating this list. The reason specifically golang.org/x/crypto hasn't been upgraded to the latest version is due to golang support. We just dropped support for 1.8, however the last update to crypto was to a version that worked with 1.8 (the upgrade happened before the drop of support).

@techknowlogick
Copy link
Member

Update to my comment above: I've created a PR to update the minimum used version of golang used to test the build so now the packages you've mentioned above can be upgraded to an appropriate version.

@tuxillo
Copy link
Contributor Author

tuxillo commented Sep 5, 2018

Thanks. So to update the packages above, do you guys use a specific procedure?

@techknowlogick
Copy link
Member

Yup, a dep ensure -update golang.org/x/PACKAGE (for each package), and then create a PR. You may need to change the revision in Gopkg.toml first before running the command.

Our lowest supported version of go right now is 1.9 and so if you want to check that the project builds with that version before pushing you can, but the CI will also check. Because of this, the latest commit for these packages may not work, rather than going commit by commit figuring out which commit is good, I start at most recent, see where the build fails then git blame the line where it fail, and skip to the revision before that and repeat until successful.

Also, personally I'd prefer all of these updates in one PR to make it easier to merge, but it is up to you if you want to do one, or many. My preference is not a strong one and I'd be happy to review either way 😄

@tuxillo
Copy link
Contributor Author

tuxillo commented Oct 9, 2018

I think I'll work on the updates individually, it's easier for me. I'm going to use the CI as you said, I think it's going to be a better check than my local builds.
I've already opened a PR (#5059). I'll see if I can use your 'git blame' trick.

Thanks!

@sapk sapk mentioned this issue Oct 24, 2018
@tuxillo
Copy link
Contributor Author

tuxillo commented Oct 26, 2018

golang.org/x/sys is now updated
golang.org/x/net is now updated

@stale
Copy link

stale bot commented Jan 5, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Jan 5, 2019
@tuxillo
Copy link
Contributor Author

tuxillo commented Jan 6, 2019

Please do not close, I plan to update the other vendor software.

@stale stale bot removed the issue/stale label Jan 6, 2019
@lafriks lafriks added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jan 7, 2019
@tuxillo
Copy link
Contributor Author

tuxillo commented Feb 12, 2019

Also update edsrzf/mmap-go for #4799

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

No branches or pull requests

4 participants