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: error while importing github.com/nats-io/nats.go: build constraints exclude all Go files in /home/proj/.go/src/iter #1759

Open
SharkFourSix opened this issue Jan 3, 2025 · 0 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@SharkFourSix
Copy link

SharkFourSix commented Jan 3, 2025

Observed behavior

When importing the library, import "github.com/nats-io/nats.go", I get the following error

error while importing github.com/nats-io/nats.go: build constraints exclude all Go files in /home/proj/.go/src/iter

I have tried go clean -modcache && go mod tidy

I have tried go clean -modcache, restart VSCode, rm abc.mod abc.sum && go mod init github.com/abc && go mod tidy

The error doesn't go away. Every other library imports fine.

Expected behavior

Import should work just like all the other libraries

Server and client version

N/A

Host environment

Ubuntu 24.LTS
VSCode
Go 1.22.6, 1.23.4

Steps to reproduce

Just import the library like so:

import "github.com/nats-io/nats.go"

@SharkFourSix SharkFourSix added the defect Suspected defect such as a bug or regression label Jan 3, 2025
@SharkFourSix SharkFourSix changed the title Error: error while importing github.com/nats-io/nats.go: build constraints exclude all Go files in /home/***/.go/src/iter Error: error while importing github.com/nats-io/nats.go: build constraints exclude all Go files in /home/proj/.go/src/iter Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

1 participant