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

Migrate from dep to golang modules (vgo) #5044

Closed
lafriks opened this issue Oct 9, 2018 · 14 comments · Fixed by #5743
Closed

Migrate from dep to golang modules (vgo) #5044

lafriks opened this issue Oct 9, 2018 · 14 comments · Fixed by #5743
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Milestone

Comments

@lafriks
Copy link
Member

lafriks commented Oct 9, 2018

No description provided.

@lafriks lafriks added topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile Hacktoberfest labels Oct 9, 2018
@lafriks lafriks added this to the 1.7.0 milestone Oct 9, 2018
@coolaj86
Copy link
Contributor

coolaj86 commented Oct 9, 2018

Hey! I already did that in my local branch and it was super easy. Takes about 10 minutes (mostly parsing and downloading deps).

go mod init

But then updating docker and all that... not quite as quick perhaps.

I'll make a PR for as far as I got, but it'll be missing some things, of course.

@lunny
Copy link
Member

lunny commented Oct 9, 2018

So when 1.7.0 is coming, we will drop go1.10 support.

@lafriks
Copy link
Member Author

lafriks commented Oct 9, 2018

@coolaj86 yes updating drone build steps including step for checking if dependencies are correct also needs to be fixed

@coolaj86
Copy link
Contributor

coolaj86 commented Oct 11, 2018

go: converting Gopkg.lock: stat github.com/boltdb/bolt@ccd680d8c1a0179ac3d68f692b01e1a1589cbfc7: unknown revision ccd680d8c1a0179ac3d68f692b01e1a1589cbfc7

Do we have a custom patched version of boltdb committed to the repo?

@techknowlogick
Copy link
Member

@coolaj86
Copy link
Contributor

coolaj86 commented Oct 11, 2018

Actually... we don't.

rg bolt
Gopkg.lock
111:    "index/store/boltdb",
149:  name = "github.com/boltdb/bolt"
153:  source = "github.com/go-gitea/bolt"

Gopkg.toml
91:  name = "github.com/boltdb/bolt"
93:  source = "github.com/go-gitea/bolt"

The only place it shows up is in the lock file.

@techknowlogick
Copy link
Member

oh you know what that dependency might have been removed when tidb was removed.

@coolaj86 coolaj86 mentioned this issue Oct 11, 2018
4 tasks
@coolaj86
Copy link
Contributor

I see that bleve also uses bolt. Should I assume that our bolt modifications for tidb and not for bleve?

@techknowlogick
Copy link
Member

the modifications were so that bolt builds on mips platforms, but maybe it's time to use https://github.com/etcd-io/bbolt instead (if bleve supports it)

@coolaj86
Copy link
Contributor

I was hoping to be able to use go mods new replace feature, but it looks like we'll still have to have a gitea version if nothing more than to rename the package from bbolt back to bolt: etcd-io/bbolt#129

Or the bleve maintainers will have to migrate: blevesearch/bleve#783

@techknowlogick
Copy link
Member

@coolaj86 As you can see from my comment in the (bleve) ticket you linked I created a PR to upgrade to use bbolt, however I'm having some trouble with failing tests. If you are keen on solving those issues I can give you access to my fork.

@coolaj86
Copy link
Contributor

@techknowlogick give me access and I’ll try it out.

I have minimal experience with bleve and no experience with bbolt, but I’ll poke around a little and see what I see.

@techknowlogick
Copy link
Member

@coolaj86 thanks 😄

@techknowlogick techknowlogick modified the milestones: 1.7.0, 1.8.0 Dec 19, 2018
@techknowlogick
Copy link
Member

blevesearch/bleve#783 has successfully been completed, which means we can drop support for regular bolt, and just use bbolt for everything!

@techknowlogick techknowlogick modified the milestones: 1.8.0, 1.9.0 Mar 8, 2019
@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
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants