2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-25 06:07:44 +00:00

Add hints how to use the go tool and direnv

This commit is contained in:
Alexander Neumann 2016-10-17 13:09:56 +02:00
parent a5a9c42185
commit 7c49255c2a
2 changed files with 11 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
GOPATH=$PWD:$PWD/vendor

View File

@ -92,6 +92,16 @@ quickly set up VMs and run the tests, e.g.:
$ vagrant ssh freebsd -c 'cd restic/restic; go test -v ./...' $ vagrant ssh freebsd -c 'cd restic/restic; go test -v ./...'
[...] [...]
The default `go` tool can also be used by setting the environment variable
`GOPATH` to the following value while being in the top level directory in the
git repository:
$ export GOPATH=$PWD:$PWD/vendor
The file `.envrc` allows automatic `GOPATH` configuration with
[direnv](https://direnv.net/), inspect the file and then allow automatic
configuration by running `direnv allow`.
Providing Patches Providing Patches
================= =================