Quantcast
Channel: Resolving Go dependencies in Docker container - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Resolving Go dependencies in Docker container

$
0
0

I want to build my Go application during the Docker image build and set image entrypoint to built Go application. Problem is that my Go application is subpackage of the main package and uses some other submodules from the main package. This main package is on Github as private repository so I cannot just go get inside the container.

I've tried to setup Glide dependency manager and get all dependencies outside of the container into the vendor/ directory but there is another problem - glide.lock would have to be updated after each commit in main private repository. This is not solution for me because I want to have other dependencies locked.

Is there any way to build application with latest version of main package dependency and locked versions of other dependencies?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images