lileio / lile

Easily generate gRPC services in Go ⚡️
MIT License
1.51k stars 88 forks source link

Issue trying to install using go get -u github.com/lileio/lile/... #70

Closed squarebrakets closed 3 years ago

squarebrakets commented 3 years ago

I tried to install the package but the terminal shows this:


# cd /home/user/go/src/google.golang.org/api; git pull --ff-only
From https://github.com/googleapis/google-api-go-client
 * [new branch]      master          -> origin/master
 * [new branch]      release-v0.38.0 -> origin/release-v0.38.0
 * [new tag]               v0              -> v0
 * [new tag]               v0.1.0          -> v0.1.0
 * [new tag]               v0.10.0         -> v0.10.0
 * [new tag]               v0.11.0         -> v0.11.0
 * [new tag]               v0.12.0         -> v0.12.0
 * [new tag]               v0.13.0         -> v0.13.0
 * [new tag]               v0.14.0         -> v0.14.0
 * [new tag]               v0.15.0         -> v0.15.0
 * [new tag]               v0.16.0         -> v0.16.0
 * [new tag]               v0.17.0         -> v0.17.0
 * [new tag]               v0.18.0         -> v0.18.0
 * [new tag]               v0.19.0         -> v0.19.0
 * [new tag]               v0.2.0          -> v0.2.0
 * [new tag]               v0.20.0         -> v0.20.0
 * [new tag]               v0.21.0         -> v0.21.0
 * [new tag]               v0.22.0         -> v0.22.0
 * [new tag]               v0.23.0         -> v0.23.0
 * [new tag]               v0.24.0         -> v0.24.0
 * [new tag]               v0.25.0         -> v0.25.0
 * [new tag]               v0.26.0         -> v0.26.0
 * [new tag]               v0.27.0         -> v0.27.0
 * [new tag]               v0.28.0         -> v0.28.0
 * [new tag]               v0.29.0         -> v0.29.0
 * [new tag]               v0.3.0          -> v0.3.0
 * [new tag]               v0.3.1          -> v0.3.1
 * [new tag]               v0.3.1+alpha    -> v0.3.1+alpha
 * [new tag]               v0.3.1-alpha    -> v0.3.1-alpha
 * [new tag]               v0.3.2          -> v0.3.2
 * [new tag]               v0.30.0         -> v0.30.0
 * [new tag]               v0.31.0         -> v0.31.0
 * [new tag]               v0.32.0         -> v0.32.0
 * [new tag]               v0.33.0         -> v0.33.0
 * [new tag]               v0.34.0         -> v0.34.0
 * [new tag]               v0.35.0         -> v0.35.0
 * [new tag]               v0.36.0         -> v0.36.0
 * [new tag]               v0.37.0         -> v0.37.0
 * [new tag]               v0.4.0          -> v0.4.0
 * [new tag]               v0.5.0          -> v0.5.0
 * [new tag]               v0.6.0          -> v0.6.0
 * [new tag]               v0.7.0          -> v0.7.0
 * [new tag]               v0.8.0          -> v0.8.0
 * [new tag]               v0.9.0          -> v0.9.0
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

package google.golang.org/api/iterator: exit status 1
cannot find package "google.golang.org/api/option" in any of:
        /usr/local/go/src/google.golang.org/api/option (from $GOROOT)
        /home/user/go/src/google.golang.org/api/option (from $GOPATH)
cannot find package "google.golang.org/api/option/internaloption" in any of:
        /usr/local/go/src/google.golang.org/api/option/internaloption (from $GOROOT)
        /home/user/go/src/google.golang.org/api/option/internaloption (from $GOPATH)
cannot find package "google.golang.org/api/transport/grpc" in any of:
        /usr/local/go/src/google.golang.org/api/transport/grpc (from $GOROOT)
        /home/user/go/src/google.golang.org/api/transport/grpc (from $GOPATH)
cannot find package "google.golang.org/api/support/bundler" in any of:
        /usr/local/go/src/google.golang.org/api/support/bundler (from $GOROOT)
        /home/user/go/src/google.golang.org/api/support/bundler (from $GOPATH)```

Anything I can do?
arbarlow commented 3 years ago

Hi there,

I think you may have a couple of problems,

firstly, you're not using go modules, which means that you might run in to trouble using -u and with general version mis matches, so I recommend installing lile in a modules based project, if installing outside of homebrew, binary.

secondly, I think your cached version of google.golang.org/api, a library lile uses, has a general git checkout issue, so you try just doing rm -rf /home/user/go/src/google.golang.org/api and then doing a go get again?

squarebrakets commented 3 years ago

Thanks