Merge pull request #6260 from hashicorp/c-circleci-tweak-20190903
ci: ignore nested pkgs in GOTEST_PKGS_EXCLUDE
This commit is contained in:
commit
b6bf7f9a6c
|
@ -13,7 +13,7 @@ GO_TEST_CMD = $(if $(shell which gotestsum),gotestsum --,go test)
|
||||||
ifeq ($(origin GOTEST_PKGS_EXCLUDE), undefined)
|
ifeq ($(origin GOTEST_PKGS_EXCLUDE), undefined)
|
||||||
GOTEST_PKGS ?= "./..."
|
GOTEST_PKGS ?= "./..."
|
||||||
else
|
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
|
endif
|
||||||
|
|
||||||
default: help
|
default: help
|
||||||
|
@ -170,6 +170,7 @@ check: ## Lint the source code
|
||||||
--deadline 10m \
|
--deadline 10m \
|
||||||
--vendor \
|
--vendor \
|
||||||
--exclude='.*\.generated\.go' \
|
--exclude='.*\.generated\.go' \
|
||||||
|
--exclude='.*\.pb\.go' \
|
||||||
--exclude='.*bindata_assetfs\.go' \
|
--exclude='.*bindata_assetfs\.go' \
|
||||||
--skip="ui/" \
|
--skip="ui/" \
|
||||||
--sort="path" \
|
--sort="path" \
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"syscall"
|
"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
|
//sys getDiskFreeSpaceEx(dirName *uint16, availableFreeBytes *uint64, totalBytes *uint64, totalFreeBytes *uint64) (err error) = kernel32.GetDiskFreeSpaceExW
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue