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
The commands go build, go list and go test do not honor the build tags unless the full package path is specified. The issue occurs when using a command in the form go list ./... and one of the packages has all of the files guarded by build tags. With or without the -tags argument provided, the command fails to build, test or run the target package. If the full package path is provided, it works as expected.
Rather than try to describe all the steps to reproduce the issue, I've made a package available here to demonstrate. The README contains full instructions.
This behavior was observed on go1.4.2 on Mac OS X 10.10.
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
build tags not honored using ./... with go build, list, and test
cmd/go: build tags not honored using ./... with go build, list, and test
Jun 17, 2015
The commands
go build
,go list
andgo test
do not honor the build tags unless the full package path is specified. The issue occurs when using a command in the formgo list ./...
and one of the packages has all of the files guarded by build tags. With or without the-tags
argument provided, the command fails to build, test or run the target package. If the full package path is provided, it works as expected.Rather than try to describe all the steps to reproduce the issue, I've made a package available here to demonstrate. The README contains full instructions.
This behavior was observed on go1.4.2 on Mac OS X 10.10.
The text was updated successfully, but these errors were encountered: