mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +00:00
test: Update Dockerfile to the new "go get" restrictions
In Go 1.16, "go get" on non-module paths now require an explicit version to point to. Without a specific version, the invocation fails. See https://golang.org/doc/go1.16#go-command for more details on the change. The test Dockerfile uses "go get" to fetch driusan/dkim's binaries, used for integration testing. So this patch adjusts the Dockerfile to fetch the latest version.
This commit is contained in:
@@ -39,10 +39,9 @@ RUN mkdir -p test/t-02-exim/.exim4 \
|
|||||||
RUN chmod g-s /usr/bin/msmtp
|
RUN chmod g-s /usr/bin/msmtp
|
||||||
|
|
||||||
# Install binaries for the (optional) DKIM integration test.
|
# Install binaries for the (optional) DKIM integration test.
|
||||||
RUN go get github.com/driusan/dkim/... \
|
RUN go install github.com/driusan/dkim/cmd/dkimsign@latest \
|
||||||
&& go install github.com/driusan/dkim/cmd/dkimsign \
|
&& go install github.com/driusan/dkim/cmd/dkimverify@latest \
|
||||||
&& go install github.com/driusan/dkim/cmd/dkimverify \
|
&& go install github.com/driusan/dkim/cmd/dkimkeygen@latest
|
||||||
&& go install github.com/driusan/dkim/cmd/dkimkeygen
|
|
||||||
|
|
||||||
# Copy into the container. Everything below this line will not be cached.
|
# Copy into the container. Everything below this line will not be cached.
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
Reference in New Issue
Block a user