Closed
Description
What version of Go are you using (go version
)?
$ go version go version go1.16beta1 linux/amd64
Does this issue reproduce with the latest release?
Haven't tried on tip.
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/light/.cache/go-build" GOENV="/home/light/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/light/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/light" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/light/sdk/go1.16beta1" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/light/sdk/go1.16beta1/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.16beta1" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/light/src/foo/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4010338713=/tmp/go-build -gno-record-gcc-switches"
What did you do?
Run go build
on:
https://play.golang.org/p/HR-SdE2vE8c
What did you expect to see?
bar/bar.go:5:1: pattern xxx.txt: no matching files found
What did you see instead?
The line number is for the import of the package with the go:embed
directive:
foo.go:5:2: pattern xxx.txt: no matching files found