9f82b75e57
* 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
37 lines
819 B
TOML
37 lines
819 B
TOML
# For v0.x.y dependencies, prefer adding a constraints of the form: version=">= 0.x.y"
|
|
# to avoid locking to a particular minor version which can cause dep to not be
|
|
# able to find a satisfying dependency graph.
|
|
|
|
[[constraint]]
|
|
branch = "master"
|
|
name = "git.apache.org/thrift.git"
|
|
source = "github.com/apache/thrift"
|
|
|
|
[[constraint]]
|
|
name = "github.com/golang/protobuf"
|
|
version = "1.0.0"
|
|
|
|
[[constraint]]
|
|
name = "github.com/openzipkin/zipkin-go"
|
|
version = ">=0.1.0"
|
|
|
|
[[constraint]]
|
|
name = "github.com/prometheus/client_golang"
|
|
version = ">=0.8.0"
|
|
|
|
[[constraint]]
|
|
branch = "master"
|
|
name = "golang.org/x/net"
|
|
|
|
[[constraint]]
|
|
branch = "master"
|
|
name = "google.golang.org/api"
|
|
|
|
[[constraint]]
|
|
name = "google.golang.org/grpc"
|
|
version = "1.11.3"
|
|
|
|
[prune]
|
|
go-tests = true
|
|
unused-packages = true
|