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

Build failures observed with MinIO #477

Closed
harshavardhana opened this issue Jun 4, 2019 · 11 comments
Closed

Build failures observed with MinIO #477

harshavardhana opened this issue Jun 4, 2019 · 11 comments

Comments

@harshavardhana
Copy link

go: github.com/nats-io/[email protected]: parsing go.mod: unexpected module path "github.com/nats-io/nats.go"
go: error loading module requirements

Did this repo change in anyway?

@kozlovic
Copy link
Member

kozlovic commented Jun 4, 2019

Yes, repository was renamed from go-nats to nats.go.
Try github.com/nats-io/nats.go/@v1.8.0 (notice the / after nats.go).

@wallyqs
Copy link
Member

wallyqs commented Jun 4, 2019

hi @harshavardhana thanks for the report, one change is that the client repo has changed from
github.com/nats-io/go-nats to github.com/nats-io/nats.go, could you share the link to the project where this happened?

@harshavardhana
Copy link
Author

We have a fix we were making a new release and observed the build failures we had to rename go-nats to nats.go and go-streaming-server to stan.go

The project is https://github.com/minio/minio

@kozlovic
Copy link
Member

kozlovic commented Jun 4, 2019

Check my comment and try please. It should work.

@kozlovic
Copy link
Member

kozlovic commented Jun 4, 2019

To recap, we have changed the repo name, so replace nats or go-nats with nats.go. In some cases, nats.go is problematic (because of directory ending with .go) and it helps to have the / at the end.

@wallyqs
Copy link
Member

wallyqs commented Jun 4, 2019

thanks @harshavardhana looking at the go.mod file from minio/minio I notice the following entries which feels like there might still be some issues:
https://github.com/minio/minio/blob/master/go.mod#L65-L70

    github.com/nats-io/gnatsd v1.4.1 // this one should be github.com/nats-io/nats-server 
    github.com/nats-io/go-nats-streaming v0.4.2 // github.com/nats-io/stan.go
    github.com/nats-io/nats v1.7.2 // should be instead replaced by nats.go
    github.com/nats-io/nats.go v1.8.0 // should replace nats-io/nats entry above

So I think that the resulting dependencies listed in the go.mod should look something like this:

    github.com/nats-io/nats-server v1.4.1
    github.com/nats-io/stan.go v0.4.2
    github.com/nats-io/nats.go v1.8.0

@harshavardhana
Copy link
Author

minio/minio@ff77994 fixes this, we will do the next fixes later.

@kozlovic kozlovic closed this as completed Jun 4, 2019
@harshavardhana
Copy link
Author

harshavardhana commented Jun 4, 2019

thanks @harshavardhana looking at the go.mod file from minio/minio I notice the following entries which feels like there might still be some issues:

@wallyqs it's not that simple in go mod world, unfortunately. We seem to have other deps which depend on gnatsd which is still being referenced cyclically which is bringing in other deps as well.

We will have live with that until they fix their repos.

@mzukowski-reef
Copy link

@harshavardhana it seems that is caused by bad imports in nats.go and stan.go tests - namely nats-server/* and nats-streaming-server/* instead of nats-server/v2/* and nats-streaming-server/v2/* - without v2 old versions are downloaded with imports using old repo names and then you end up with

go: github.com/nats-io/[email protected]: parsing go.mod: unexpected module path "github.com/nats-io/nats.go"

@kozlovic
Copy link
Member

kozlovic commented Jun 4, 2019

@mzukowski-reef I think you may be right. I can work on that, but I am not 100% sure, so to test it means that I need to create a new tag to test the theory, which if prove wrong means I will have to delete the tag. What do you think?

@kozlovic
Copy link
Member

kozlovic commented Jun 4, 2019

I have made several updates to various nats-io repos and it seems that things are getting slowly resolved. Sorry for the trouble.

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

4 participants