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

Compilation issue with vendoring #666

Closed
opoudjis opened this issue Oct 5, 2018 · 1 comment
Closed

Compilation issue with vendoring #666

opoudjis opened this issue Oct 5, 2018 · 1 comment

Comments

@opoudjis
Copy link
Contributor

opoudjis commented Oct 5, 2018

As of a couple of days ago, I can no longer compile nats-streaming-server (could do so two days ago, cannot do so now):

# _/Users/nickn/Documents/arbeit/go/src/github.com/nats-io/nats-streaming-server
./nats-streaming-server.go:156:24: cannot use nOpts (type *"github.com/nats-io/gnatsd/server".Options) as type *"github.com/nats-io/nats-streaming-server/vendor/github.com/nats-io/gnatsd/server".Options in argument to "github.com/nats-io/nats-streaming-server/server".Run
./nats-streaming-server.go:177:2: cannot use natsOpts (type *"github.com/nats-io/nats-streaming-server/vendor/github.com/nats-io/gnatsd/server".Options) as type *"github.com/nats-io/gnatsd/server".Options in return argument

I'm struggling to work out what has happened, and there are no commits in the intervening period that impact nats-streaming-server.go.

One thing that I did find is that there are nested vendor directories in gnatsd, which are known to confuse build:

./vendor/github.com/nats-io/gnatsd/vendor/github.com/nats-io/nuid
./vendor/github.com/nats-io/gnatsd/vendor/golang.org/x/crypto/bcrypt
./vendor/github.com/nats-io/gnatsd/vendor/golang.org/x/crypto/blowfish
./vendor/github.com/nats-io/gnatsd/vendor/golang.org/x/sys/windows/registry
./vendor/github.com/nats-io/gnatsd/vendor/golang.org/x/sys/windows/svc

However blowing away the nested vendor directories does not make the error go away.

@opoudjis opoudjis changed the title Compilation issue with vendoring (Nested vendor directories?) Compilation issue with vendoring Oct 5, 2018
@opoudjis
Copy link
Contributor Author

opoudjis commented Oct 5, 2018

Sorry, false alarm: I was getting the issue identified in https://stackoverflow.com/questions/41319633/vendor-folder-not-used-with-go-build

@opoudjis opoudjis closed this as completed Oct 5, 2018
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

1 participant