Merge pull request #6260 from hashicorp/c-circleci-tweak-20190903

ci: ignore nested pkgs in GOTEST_PKGS_EXCLUDE
This commit is contained in:
Mahmood Ali 2019-09-11 11:17:10 -07:00 committed by GitHub
commit b6bf7f9a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ GO_TEST_CMD = $(if $(shell which gotestsum),gotestsum --,go test)
ifeq ($(origin GOTEST_PKGS_EXCLUDE), undefined)
GOTEST_PKGS ?= "./..."
else
GOTEST_PKGS=$(shell go list ./... | sed 's/github.com\/hashicorp\/nomad/./' | egrep -v "^($(GOTEST_PKGS_EXCLUDE))$$")
GOTEST_PKGS=$(shell go list ./... | sed 's/github.com\/hashicorp\/nomad/./' | egrep -v "^($(GOTEST_PKGS_EXCLUDE))(/.*)?$$")
endif
default: help
@ -170,6 +170,7 @@ check: ## Lint the source code
--deadline 10m \
--vendor \
--exclude='.*\.generated\.go' \
--exclude='.*\.pb\.go' \
--exclude='.*bindata_assetfs\.go' \
--skip="ui/" \
--sort="path" \

View File

@ -6,7 +6,7 @@ import (
"syscall"
)
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zstorage_windows.go storage_windows.go
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zstorage_windows.generated.go storage_windows.go
//sys getDiskFreeSpaceEx(dirName *uint16, availableFreeBytes *uint64, totalBytes *uint64, totalFreeBytes *uint64) (err error) = kernel32.GetDiskFreeSpaceExW