Fix tests for clones outside of GOPATH. (#4198)

`go list ./foo/...` does not return appropriate package names when this
repository is cloned outside GOPATH.
This commit is contained in:
Pat Gavlin 2020-03-26 13:42:43 -07:00 committed by GitHub
parent 8b4de4d476
commit 7cfb6f99e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,9 @@ SUB_PROJECTS := sdk/dotnet sdk/nodejs sdk/python sdk/go
include build/common.mk
PROJECT := github.com/pulumi/pulumi/pkg/cmd/pulumi
PROJECT_PKGS := $(shell go list ./pkg/... | grep -v /vendor/)
EXAMPLES_PKGS := $(shell go list ./examples/ | grep -v tests/templates | grep -v /vendor/)
TESTS_PKGS := $(shell go list ./tests/... | grep -v tests/templates | grep -v /vendor/)
PROJECT_PKGS := $(shell cd ./pkg && go list ./... | grep -v /vendor/)
EXAMPLES_PKGS := $(shell cd ./examples && go list ./... | grep -v tests/templates | grep -v /vendor/)
TESTS_PKGS := $(shell cd ./tests ** go list ./... | grep -v tests/templates | grep -v /vendor/)
VERSION := $(shell scripts/get-version HEAD)
TESTPARALLELISM := 10