paperless-cli
paperless-cli copied to clipboard
some errors while installing
Describe the bug
When running $GOPATH/src/github.com/stgarf/paperless-cli/build.sh this
Need govvv, building and installing..cannot find package "github.com/ahmetb/govvv" in any of:
/usr/local/go/src/github.com/ahmetb/govvv (from $GOROOT)
/home/ludde/go/src/github.com/ahmetb/govvv (from $GOPATH)
and this
Need gox, building and installing..cannot find package "github.com/mitchellh/gox" in any of:
/usr/local/go/src/github.com/mitchellh/gox (from $GOROOT)
/home/ludde/go/src/github.com/mitchellh/gox (from $GOPATH)
happened.
I solved it with
go get -v -u github.com/ahmetb/govvv github.com/mitchellh/gox
Next error i got when running the build script was this
Building..failed to collect values: failed to get commit: git: error="exit status 128" stderr=fatal: inte ett git-arkiv (eller någon av föräldrakatalogerna): .git
failed to collect values: failed to get commit: git: error="exit status 128" stderr=fatal: inte ett git-arkiv (eller någon av föräldrakatalogerna): .git
Number of parallel builds: 3
. Build complete.
which is due to the use of relative paths.
I solved it with
cd $(readlink -f $0 | xargs dirname)
at the beginning of the build script, and
cd - 1>/dev/null
at the end.
Desktop (please complete the following information):
- OS: Debian 9 Stretch
- Go version: go1.15.3 linux/amd64
May I also suggest writing
ln -s $GOPATH/src/github.com/stgarf/paperless-cli/bin/paperless-cli.<OS>.<Arch> $GOPATH/bin/paperless-cli
in README.md instead of using cp.