Skip to content

Commit

Permalink
Add support for private subpackages. (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarcez authored Oct 20, 2021
1 parent a364012 commit b0123c1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM golang:1.17 as builder

ARG GH_TOKEN

# Required to access private modules
ENV GOPRIVATE=github.com/taxibeat/**

# Install Skim
ENV GOPRIVATE=github.com/taxibeat/*
RUN git config --global url."https://$GH_TOKEN@github.com/".insteadOf "https://github.com/" && \
go get github.com/taxibeat/skim/cmd/skim && rm -rf /go/src/github.com/taxibeat/ && \
git config --global --remove-section url."https://$GH_TOKEN@github.com/"
Expand Down Expand Up @@ -36,9 +38,6 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
# CGO is required by some modules like https://github.com/uber/h3-go
ENV CGO_ENABLED=1

# Required to access private modules
ENV GOPRIVATE=github.com/taxibeat/*

# Skim dependencies
ARG BUF_VERSION=0.24.0
ARG PROTOC_VERSION=3.13.0
Expand Down

0 comments on commit b0123c1

Please sign in to comment.