Fix sidecar Dockerfiles : Go 1.16 uses go modules by default
@@ -15,7 +15,7 @@
FROM golang:1.16 AS builder
WORKDIR $GOPATH/src/github.com/docker/compose-cli/aci/etchosts
COPY . .
-RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/hosts main/main.go
+RUN GO111MODULE=auto CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/hosts main/main.go
FROM scratch
COPY --from=builder /go/bin/hosts /hosts
WORKDIR $GOPATH/src/github.com/docker/compose-cli/ecs/resolv
-RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/resolv main/main.go
+RUN GO111MODULE=auto CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/resolv main/main.go
COPY --from=builder /go/bin/resolv /resolv
WORKDIR $GOPATH/src/github.com/docker/compose-cli/ecs/secrets
-RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/secrets main/main.go
+RUN GO111MODULE=auto CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/secrets main/main.go
COPY --from=builder /go/bin/secrets /secrets