Skip to content

Instantly share code, notes, and snippets.

@eriknelson
Created September 16, 2017 15:22
Show Gist options
  • Save eriknelson/4be680eeaae0fdc9dff49225110bae67 to your computer and use it in GitHub Desktop.
Save eriknelson/4be680eeaae0fdc9dff49225110bae67 to your computer and use it in GitHub Desktop.
Step 5/7 : RUN glide install && mkdir 3rdparty && cd 3rdparty && git clone -b 2.x https://github.com/swagger-api/swagger-ui.git && cd ../docs && ln -s ../3rdparty/swagger-ui/dist swagger-ui && cd ../ && go build
---> Running in ad7baa9a26bc
[WARN] The name listed in the config file (kore-poc) does not match the current location (github.com/dahendel/kore-poc)
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching golang.org/x/net.
[INFO] --> Fetching github.com/emicklei/go-restful-swagger12.
[INFO] --> Fetching github.com/emicklei/go-restful.
[INFO] --> Fetching github.com/mattn/go-sqlite3.
[INFO] Setting references.
[INFO] --> Setting version for github.com/mattn/go-sqlite3 to ca5e3819723d8eeaf170ad510e7da1d6d2e94a08.
[INFO] --> Setting version for github.com/emicklei/go-restful-swagger12 to dcef7f55730566d41eae5db10e7d6981829720f6.
[INFO] --> Setting version for github.com/emicklei/go-restful to 68c9750c36bb8cb433f1b88c807b4b30df4acc40.
[INFO] --> Setting version for golang.org/x/net to 66aacef3dd8a676686c7ae3716979581e8b03c47.
[INFO] Exporting resolved dependencies...
[INFO] --> Exporting github.com/emicklei/go-restful
[INFO] --> Exporting github.com/emicklei/go-restful-swagger12
[INFO] --> Exporting github.com/mattn/go-sqlite3
[INFO] --> Exporting golang.org/x/net
[INFO] Replacing existing vendor dependencies
Cloning into 'swagger-ui'...
main.go:6:2: cannot find package "github.com/dahendel/kore-poc/kore-go-restful/api" in any of:
/usr/local/go/src/github.com/dahendel/kore-poc/vendor/github.com/dahendel/kore-poc/kore-go-restful/api (vendor tree)
/usr/local/go/src/vendor/github.com/dahendel/kore-poc/kore-go-restful/api
/usr/local/go/src/github.com/dahendel/kore-poc/kore-go-restful/api (from $GOROOT)
/go/src/github.com/dahendel/kore-poc/kore-go-restful/api (from $GOPATH)
The command '/bin/sh -c glide install && mkdir 3rdparty && cd 3rdparty && git clone -b 2.x https://github.com/swagger-api/swagger-ui.git && cd ../docs && ln -s ../3rdparty/swagger-ui/dist swagger-ui && cd ../ && go build' returned a non-zero code: 1
@dahendel
Copy link

I will fix that. it's because I reorganized the project and forgot to update the dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment