didip / tollbooth_chi

Tollbooth - Chi integration layer
13 stars 7 forks source link

Get error when try to get tollbooth_chi #6

Closed BrightRan closed 4 years ago

BrightRan commented 4 years ago

When using the following command to try to get tollbooth_chi,

go get -u "github.com/didip/tollbooth_chi"

it always returns the "cannot find package" error like as this:

cannot find package "github.com/didip/tollbooth/v6" in any of:
    /opt/hostedtoolcache/go/1.15.0/x64/src/github.com/didip/tollbooth/v6 (from $GOROOT)
    /home/runner/go/src/github.com/didip/tollbooth/v6 (from $GOPATH)
cannot find package "github.com/didip/tollbooth/v6/limiter" in any of:
    /opt/hostedtoolcache/go/1.15.0/x64/src/github.com/didip/tollbooth/v6/limiter (from $GOROOT)
    /home/runner/go/src/github.com/didip/tollbooth/v6/limiter (from $GOPATH)

I tested on my local environment and in a GitHub Actions workflow, both get the same error.

dineshkumarj commented 4 years ago

@BrightRan - Thanks for raising this ticket. I am able to reproduce this issue on my local machine after the deleting the package tollbooth and tollbooth_chi from the respective directory.

Scenario 1 - I have installed tollbooth successfully, then when I try to install tollbooth_chi it throws me an error "cannot find package",

Screenshot 2020-08-28 at 11 56 01 AM

However, I could see the tollbooth_chi created in the respective directory. But still my test case fails,

Screenshot 2020-08-28 at 1 27 27 PM

Scenario 2 - I have installed tollbooth successfully, then I browsed to the directory where this is installed as per the below image and I tried to install tollbooth_chi, it shows like it is installed but could see the respective tollbooth_chi directory nor I was able to run my script which produces the same error - cannot find package,

Screenshot 2020-08-28 at 1 21 40 PM
didip commented 4 years ago

It should be fixed with this commit now: https://github.com/didip/tollbooth_chi/commit/a7173453ea2155063981ff132cb449e2aed44f5e