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

go run: cannot run *_test.go files (example_test.go) #21

Open
Whishay opened this issue Sep 25, 2019 · 3 comments
Open

go run: cannot run *_test.go files (example_test.go) #21

Whishay opened this issue Sep 25, 2019 · 3 comments

Comments

@Whishay
Copy link

Whishay commented Sep 25, 2019

a 10-min newbee with go on Fedora30.

docker exec -it 2256747aa0e2 influx

Connected to http://localhost:8086 version 1.7.8
InfluxDB shell version: 1.7.8

go version

go version go1.12.9 linux/amd64

go run influxdb.go

influxdb.go:22:2: cannot find package "github.com/influxdata/influxdb1-client/models" in any of:
/usr/lib/golang/src/github.com/influxdata/influxdb1-client/models (from $GOROOT)
/root/go/src/github.com/influxdata/influxdb1-client/models (from $GOPATH)

go run example_test.go

go run: cannot run *_test.go files (example_test.go)

@sam-the-programmer
Copy link

@sam-the-programmer
Copy link

Sorry, that was wrong. You need to use go test

@sam-the-programmer
Copy link

Can this be closed?

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

2 participants