Skip to content

cmd/build: wrong error on misspelled GOOS #21999

@dvyukov

Description

@dvyukov

go version devel +39983cf491 Wed Sep 20 18:11:52 2017 +0000 linux/amd64

package has 2 files: test_linux.go

package test

and test_windows.go:

package test
$ GOOS=windwos go build ./test
can't load package: package test: build constraints exclude all Go files in /gopath/test

should say:

$ GOOS=windwos go build ./test
cmd/go: unsupported GOOS/GOARCH pair windwos/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions