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

Error when running go mod tidy #799

Closed
amnonbc opened this issue Aug 18, 2021 · 1 comment
Closed

Error when running go mod tidy #799

amnonbc opened this issue Aug 18, 2021 · 1 comment
Labels
bug Confirmed reproducible bug

Comments

@amnonbc
Copy link

amnonbc commented Aug 18, 2021

Defect

When attempting run go mod tidy on github.com/amnonbc/natstest
I get the following error

go: natstest imports
	github.com/nats-io/gnatsd/server tested by
	github.com/nats-io/gnatsd/server.test imports
	github.com/nats-io/go-nats: github.com/nats-io/go-nats@v1.8.1: parsing go.mod:
	module declares its path as: github.com/nats-io/nats.go
	        but was required as: github.com/nats-io/go-nats

Make sure that these boxes are checked before submitting your issue -- thank you!

Versions of nats.go and the nats-server if one was involved:

v1.11.0

OS/Container environment:

Darwin amnonwork 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
go version go1.17 darwin/amd64

Steps or code to reproduce the issue:

git clone git@github.com:amnonbc/natstest.git
cd natstest
go mod tidy

Expected result:

Success and no output

Actual result:

go: finding module for package github.com/golang/protobuf/proto
go: finding module for package github.com/nats-io/nats-server/v2/test
go: finding module for package google.golang.org/protobuf/runtime/protoimpl
go: finding module for package github.com/nats-io/go-nats
go: finding module for package google.golang.org/protobuf/proto
go: finding module for package google.golang.org/protobuf/reflect/protoreflect
go: finding module for package github.com/nats-io/nats-server/v2/server
go: found github.com/nats-io/go-nats in github.com/nats-io/go-nats v1.8.1
go: found github.com/nats-io/nats-server/v2/server in github.com/nats-io/nats-server/v2 v2.3.4
go: found github.com/nats-io/nats-server/v2/test in github.com/nats-io/nats-server/v2 v2.3.4
go: found google.golang.org/protobuf/proto in google.golang.org/protobuf v1.27.1
go: found github.com/golang/protobuf/proto in github.com/golang/protobuf v1.5.2
go: found google.golang.org/protobuf/reflect/protoreflect in google.golang.org/protobuf v1.27.1
go: found google.golang.org/protobuf/runtime/protoimpl in google.golang.org/protobuf v1.27.1
go: natstest imports
	github.com/nats-io/gnatsd/server tested by
	github.com/nats-io/gnatsd/server.test imports
	github.com/nats-io/go-nats: github.com/nats-io/go-nats@v1.8.1: parsing go.mod:
	module declares its path as: github.com/nats-io/nats.go
	        but was required as: github.com/nats-io/go-nats
@amnonbc amnonbc added the bug Confirmed reproducible bug label Aug 18, 2021
@amnonbc
Copy link
Author

amnonbc commented Aug 18, 2021

Duplicate of go-kit/kit#940
solvedby running
GOPROXY=direct go mod tidy

@amnonbc amnonbc closed this as completed Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed reproducible bug
Projects
None yet
Development

No branches or pull requests

1 participant