From 599aedc9c52d76560c3f8d1445d641d87330a991 Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Fri, 30 Apr 2021 10:40:51 +0100 Subject: [PATCH] format: Use Go Modules Signed-off-by: Dave Tucker --- pkg/format/Dockerfile | 2 +- pkg/format/go.mod | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 pkg/format/go.mod diff --git a/pkg/format/Dockerfile b/pkg/format/Dockerfile index 5abe9f847..b3f24a566 100644 --- a/pkg/format/Dockerfile +++ b/pkg/format/Dockerfile @@ -18,7 +18,7 @@ RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS build RUN apk add --no-cache go musl-dev -ENV GOPATH=/go PATH=$PATH:/go/bin GO111MODULE=off +ENV GOPATH=/go PATH=$PATH:/go/bin # Hack to work around an issue with go on arm64 requiring gcc RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true diff --git a/pkg/format/go.mod b/pkg/format/go.mod new file mode 100644 index 000000000..1d11d0bc1 --- /dev/null +++ b/pkg/format/go.mod @@ -0,0 +1,3 @@ +module github.com/linuxkit/linuxkit/pkg/format + +go 1.15