Unable to `go get` sops in docker
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
With a simple docker file I'm unable to go get sops.
FROM golang:1.13-buster
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y locales \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
ENV SOPS_VERSION v3.5.0
RUN go get -u go.mozilla.org/sops/v3/cmd/sops
RUN cd $GOPATH/src/go.mozilla.org/sops/
RUN git checkout tags/$(SOPS_VERSION)
RUN make install
this results in:
Step i/n : RUN go get go.mozilla.org/sops/v3/cmd/sops
---> Running in xxx
package go.mozilla.org/sops/v3/cmd/sops: unrecognized import path "go.mozilla.org/sops/v3/cmd/sops" (parse https://go.mozilla.org/sops/v3/cmd/sops?go-get=1: no go-import meta tags ())
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Dockerfile and reproduce the go get failure for go.mozilla.org/sops/v3/cmd/sops using the golang:1.13-buster image. Trace why the import path lacks go-import meta tags, then verify that the Docker installation sequence completes and installs sops successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100