Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Dep ensure without any go code in directories #796

Closed
@lclarkmichalek

Description

@lclarkmichalek

I'd like to be able to do a dep ensure in a directory with just a Gopkg.lock and a Gopkg.toml. All of my dependencies are specified in Gopkg.lock like a good citizen, and I'd like to claim my docker-build-time-tax rebate. This means when I have a Dockerfile like

RUN go get github.com/golang/dep/cmd/dep
ADD Gopkg.lock ./Gopkg.lock
ADD Gopkg.toml ./Gopkg.toml
RUN dep ensure

ADD *.go ./
RUN go install

At the moment, this is nicht sehr gut, as dep replies all dirs lacked any go code. I'd love it if dep could install from my lock file, which is then cachable via docker, before adding my more rapidly changing application code.

Usual apologies if this is a dupe (did a search for 'all dirs lacked any go code' and couldn't find anything other than the PR where the warning was introduced)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions