From af4ab595d4de4571eb91ea52dcc86c0aea59c2ba Mon Sep 17 00:00:00 2001 From: Arthur Chaloin Date: Wed, 25 May 2022 13:58:53 +0200 Subject: [PATCH] refactor: rename module to github.com/enix/x509-certificate-exporter --- Dockerfile | 6 +++--- cmd/x509-certificate-exporter/main.go | 2 +- go.mod | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f18a6b6..e056fd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17-alpine as build ARG TARGETOS ARG TARGETARCH -WORKDIR $GOPATH/src/enix.io/x509-certificate-exporter +WORKDIR $GOPATH/src/github.com/enix/x509-certificate-exporter COPY go.mod go.mod COPY go.sum go.sum @@ -20,7 +20,7 @@ ENV GOARCH=${TARGETARCH} ARG VERSION="0.0.0" -RUN go build -tags netgo,osusergo -ldflags "-X \"enix.io/x509-certificate-exporter/internal.Version=${VERSION}\"" ./cmd/x509-certificate-exporter +RUN go build -tags netgo,osusergo -ldflags "-X \"github.com/enix/x509-certificate-exporter/internal.Version=${VERSION}\"" ./cmd/x509-certificate-exporter ## Production Stage @@ -36,7 +36,7 @@ LABEL maintainer="Enix " \ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.14 -COPY --from=build /go/src/enix.io/x509-certificate-exporter/x509-certificate-exporter /x509-certificate-exporter +COPY --from=build /go/src/github.com/enix/x509-certificate-exporter/x509-certificate-exporter /x509-certificate-exporter EXPOSE 9793/tcp diff --git a/cmd/x509-certificate-exporter/main.go b/cmd/x509-certificate-exporter/main.go index 01fdb87..e3e6820 100644 --- a/cmd/x509-certificate-exporter/main.go +++ b/cmd/x509-certificate-exporter/main.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "enix.io/x509-certificate-exporter/internal" + "github.com/enix/x509-certificate-exporter/internal" getopt "github.com/pborman/getopt/v2" log "github.com/sirupsen/logrus" ) diff --git a/go.mod b/go.mod index 8dbe44d..e04972a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module enix.io/x509-certificate-exporter +module github.com/enix/x509-certificate-exporter go 1.16