Merge pull request #2610 from restic/remove-vendor

Remove vendored dependencies
This commit is contained in:
rawtaz
2020-03-01 20:22:45 +01:00
committed by GitHub
1357 changed files with 95 additions and 503625 deletions

View File

@@ -259,7 +259,7 @@ In order to build restic from source, execute the following steps:
$ cd restic
$ go run -mod=vendor build.go
$ go run build.go
You can easily cross-compile restic for all supported platforms, just
supply the target OS and platform via the command-line options like this
@@ -267,11 +267,11 @@ supply the target OS and platform via the command-line options like this
.. code-block:: console
$ go run -mod=vendor build.go --goos windows --goarch amd64
$ go run build.go --goos windows --goarch amd64
$ go run -mod=vendor build.go --goos freebsd --goarch 386
$ go run build.go --goos freebsd --goarch 386
$ go run -mod=vendor build.go --goos linux --goarch arm --goarm 6
$ go run build.go --goos linux --goarch arm --goarm 6
The resulting binary is statically linked and does not require any
libraries.

View File

@@ -22,9 +22,7 @@ The program can be built with debug support like this:
.. code-block:: console
$ go run build.go -mod=vendor -tags debug
For Go < 1.11, the option ``-mod=vendor`` needs to be removed.
$ go run build.go -tags debug
Afterwards, extensive debug messages are written to the file in
environment variable ``DEBUG_LOG``, e.g.:

View File

@@ -47,10 +47,10 @@ In the following example, we'll use the file ``restic-0.9.3.tar.gz`` and Go
$ go version
go version go1.11.1 linux/amd64
$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -mod=vendor -ldflags "-s -w" -tags selfupdate -o restic_linux_amd64 ./cmd/restic
$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -tags selfupdate -o restic_linux_amd64 ./cmd/restic
$ bzip2 restic_linux_amd64
$ GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -mod=vendor -ldflags "-s -w" -tags selfupdate -o restic_windows_amd64.exe ./cmd/restic
$ GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -tags selfupdate -o restic_windows_amd64.exe ./cmd/restic
$ touch --reference VERSION restic_windows_amd64.exe
$ TZ=Europe/Berlin zip -q -X restic_windows_amd64.zip restic_windows_amd64.exe
@@ -105,7 +105,7 @@ The following steps are necessary to build the binaries:
--volume "$PWD/restic-0.9.3:/restic" \
--volume "$PWD/output:/output" \
restic/builder \
go run -mod=vendor helpers/build-release-binaries/main.go --verbose
go run helpers/build-release-binaries/main.go --verbose
Prepare a New Release
*********************
@@ -118,6 +118,6 @@ required argument is the new version number (in `Semantic Versioning
.. code::
go run -mod=vendor helpers/prepare-release/main.go 0.9.3
go run helpers/prepare-release/main.go 0.9.3
Checks can be skipped on demand via flags, please see ``--help`` for details.