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
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Using vgo to run test cases does not work (fails with cannot find module flac_test error), while equivalent commands for go works with go-get.
$ unset GOPATH
$ git clone https://github.com/mewkiz/flac.git
$ cd flac
$ vgo install ./...
$ vgo test ./...
build github.com/mewkiz/flac_test: cannot find module for path github.com/mewkiz/flac_test
What did you expect to see?
Test cases being run.
For comparison, an equivalent set of commands that fail for vgo test work with go test:
u@x61s ~> /bin/bash
[u@x61s ~]$ go version
go version go1.10.3 linux/amd64
[u@x61s ~]$ export GOPATH=/tmp/go
[u@x61s ~]$ go get github.com/mewkiz/flac/...
[u@x61s ~]$ go test github.com/mewkiz/flac/...
ok github.com/mewkiz/flac 0.022s
? github.com/mewkiz/flac/cmd/flac2wav [no test files]
? github.com/mewkiz/flac/cmd/go-metaflac [no test files]
? github.com/mewkiz/flac/cmd/wav2flac [no test files]
ok github.com/mewkiz/flac/frame 2.666s
ok github.com/mewkiz/flac/internal/bits 0.016s
? github.com/mewkiz/flac/internal/hashutil [no test files]
ok github.com/mewkiz/flac/internal/hashutil/crc16 0.004s
ok github.com/mewkiz/flac/internal/hashutil/crc8 0.003s
? github.com/mewkiz/flac/internal/ioutilx [no test files]
? github.com/mewkiz/flac/internal/utf8 [no test files]
ok github.com/mewkiz/flac/meta 0.004s
What did you see instead?
The error message:
build github.com/mewkiz/flac_test: cannot find module for path github.com/mewkiz/flac_test
The text was updated successfully, but these errors were encountered:
@agnivade Thanks. I pulled the latest version of Go, and it seems to work just fine.
$ unset GOPATH
$ go version
go version devel +dc79206aec Mon Aug 20 05:23:29 2018 +0000 linux/amd64
$ go test -count=1 ./...
ok github.com/mewkiz/flac 0.060s
? github.com/mewkiz/flac/cmd/flac2wav [no test files]
? github.com/mewkiz/flac/cmd/go-metaflac [no test files]
? github.com/mewkiz/flac/cmd/wav2flac [no test files]
ok github.com/mewkiz/flac/frame 7.006s
ok github.com/mewkiz/flac/internal/bits 0.008s
? github.com/mewkiz/flac/internal/hashutil [no test files]
ok github.com/mewkiz/flac/internal/hashutil/crc16 0.012s
ok github.com/mewkiz/flac/internal/hashutil/crc8 0.011s
? github.com/mewkiz/flac/internal/ioutilx [no test files]
? github.com/mewkiz/flac/internal/utf8 [no test files]
ok github.com/mewkiz/flac/meta 0.036s
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Using
vgo
to run test cases does not work (fails with cannot find module flac_test error), while equivalent commands forgo
works with go-get.What did you expect to see?
Test cases being run.
For comparison, an equivalent set of commands that fail for
vgo test
work withgo test
:What did you see instead?
The error message:
The text was updated successfully, but these errors were encountered: