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

releases are not compatible with "go mod" #551

Closed
marcofranssen opened this issue Nov 28, 2018 · 15 comments
Closed

releases are not compatible with "go mod" #551

marcofranssen opened this issue Nov 28, 2018 · 15 comments

Comments

@marcofranssen
Copy link

new go 11 mod feature does not support version which do not have the v prefix on version numbers.

So far I did not find a way to install goconvey using go mod

module github.com/marcofranssen/myproject

require github.com/smartystreets/goconvey/convey 1.6.3

In general other packages I depend on do work.

module github.com/marcofranssen/myproject

require github.com/goreleaser/goreleaser v0.93.2

As you can see this package contians the v prefix. in the version number.

@amalhanaja
Copy link

amalhanaja commented Dec 21, 2018

did you changed your go.mod file ?
I'm use this commands every add pacakges
go get -u <package> inside my work dir, it's inserted new line on my go.mod files

@nasermirzaei89
Copy link

I used:

go get -u github.com/smartystreets/goconvey

but added this line to my go.mod

github.com/smartystreets/assertions v0.0.0-20190215210624-980c5ac6f3ac // indirect

@vilakshminar
Copy link

I'm having the same issue. I think all the tags generated need to be prefixed with a v or else go mod will automatically replace the 1.6.3 with the commit hash in both the go.mod & go.sum files.

It does work as it pulls the right commit but would be nice to make sure that go.mod has the version and not the commit.

@jpreese
Copy link

jpreese commented Oct 28, 2019

Was just going to ask the same thing. Would be nice if future tags could be prefixed with v for go mod support.

@marcofranssen
Copy link
Author

marcofranssen commented Oct 29, 2019 via email

@jpreese
Copy link

jpreese commented Oct 29, 2019

Agreed, that also works if the maintainers want to take that approach.

@nasermirzaei89
Copy link

no reply after 1 year from owners or maintainers. a library with more than 5k stars is more like a stale repository!!!

@jpreese
Copy link

jpreese commented Oct 29, 2019

There was a merge a few months ago, maybe they just got busy with other priorities :)

@riannucci do you have any thoughts on this?

@riannucci
Copy link
Collaborator

Hi!

(Sorry for not being more proactive maintainer-wise; I haven't gotten to do any development on goconvey for years now 😢)

If I understand correctly... All we need to do is to add vXXX tags for each XXX tag and go.mod should be happy with it?

Pretty sure I can do that... let me give it a shot.

R

@jpreese
Copy link

jpreese commented Oct 30, 2019

That's correct! The Go toolchain for modules explicitly looks for a vX.Y.Z tag when trying to resolve the latest version for a given repository.

@riannucci
Copy link
Collaborator

Okey dokey, I've created v versions of all existing tags. I'm going to try to create a new release as well, since it looks like the last one is pretty old.

@riannucci
Copy link
Collaborator

Alright, I've posted a v1.6.4 release as well, which contains everything currently on master.

@jpreese
Copy link

jpreese commented Oct 30, 2019

Awesome! Thanks so much

@riannucci
Copy link
Collaborator

Sorry for not doing this sooner!

Let me know if you run into any issues though, and I'll be happy to help get them landed.

One of these days I'll find some time to breathe some new life into goconvey...

@riannucci
Copy link
Collaborator

(marking this closed; please reopen if something's not working as expected)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants