Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

some errors while installing #25

Closed
iwconfig opened this issue Jul 19, 2021 · 0 comments
Closed

some errors while installing #25

iwconfig opened this issue Jul 19, 2021 · 0 comments

Comments

@iwconfig
Copy link

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.

@stgarf stgarf closed this as completed Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants