You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Observed behavior
When importing the library,
import "github.com/nats-io/nats.go"
, I get the following errorerror 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"
The text was updated successfully, but these errors were encountered: