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
type Context struct {
GOARCH string // target architecture
GOOS string // target operating system
GOROOT string // Go root
GOPATH string // Go path
CgoEnabled bool // whether cgo can be used
UseAllFiles bool // use files regardless of +build lines, file names
Compiler string // compiler to assume when computing target paths
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
cmd: do nothing with explicitly specified "_*" file
cmd/go: do nothing with explicitly specified "_*" file
Jul 17, 2017
What did you do?
What did you expect to see?
Take
go fmt
as the example.It should do something like
go fmt src/ciel/anotherfile.go
.What did you see instead?
can't load package: package main: no buildable Go source files in /home/lion/aosc/ciel/src/ciel
I understand
_file
will be ignored by go tools when I specified a package:https://godoc.org/cmd/go/#hdr-Description_of_package_lists
But, according to the context, this rule is for package, when I pass a file name to argument explicitly, it should not ignore them.
I think this maybe relevant to
go/build.Context.UseAllFiles
.https://godoc.org/pkg/go/build/#Context
The text was updated successfully, but these errors were encountered: