2019-04-20 19:53:34 -04:00
|
|
|
all: vet test testrace
|
Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 07:11:58 -04:00
|
|
|
|
|
|
|
build: deps
|
|
|
|
go build google.golang.org/grpc/...
|
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean -i google.golang.org/grpc/...
|
|
|
|
|
|
|
|
deps:
|
|
|
|
go get -d -v google.golang.org/grpc/...
|
|
|
|
|
|
|
|
proto:
|
|
|
|
@ if ! which protoc > /dev/null; then \
|
|
|
|
echo "error: protoc not installed" >&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
go generate google.golang.org/grpc/...
|
|
|
|
|
|
|
|
test: testdeps
|
|
|
|
go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
|
|
|
|
|
2020-03-25 15:15:46 -04:00
|
|
|
testsubmodule: testdeps
|
|
|
|
cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/...
|
|
|
|
|
Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 07:11:58 -04:00
|
|
|
testappengine: testappenginedeps
|
|
|
|
goapp test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
|
|
|
|
|
|
|
|
testappenginedeps:
|
|
|
|
goapp get -d -v -t -tags 'appengine appenginevm' google.golang.org/grpc/...
|
|
|
|
|
|
|
|
testdeps:
|
|
|
|
go get -d -v -t google.golang.org/grpc/...
|
|
|
|
|
|
|
|
testrace: testdeps
|
|
|
|
go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
|
|
|
|
|
|
|
|
updatedeps:
|
|
|
|
go get -d -v -u -f google.golang.org/grpc/...
|
|
|
|
|
|
|
|
updatetestdeps:
|
|
|
|
go get -d -v -t -u -f google.golang.org/grpc/...
|
|
|
|
|
|
|
|
vet: vetdeps
|
|
|
|
./vet.sh
|
|
|
|
|
|
|
|
vetdeps:
|
|
|
|
./vet.sh -install
|
|
|
|
|
|
|
|
.PHONY: \
|
|
|
|
all \
|
|
|
|
build \
|
|
|
|
clean \
|
|
|
|
deps \
|
|
|
|
proto \
|
|
|
|
test \
|
|
|
|
testappengine \
|
|
|
|
testappenginedeps \
|
|
|
|
testdeps \
|
|
|
|
testrace \
|
|
|
|
updatedeps \
|
|
|
|
updatetestdeps \
|
|
|
|
vet \
|
|
|
|
vetdeps
|