Skip to content

Commit

Permalink
Update restic to latest version (#2451)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
pavannd1 and mergify[bot] authored Oct 31, 2023
1 parent 14d67fd commit 3051116
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docker/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ ENV GITHUB_REPOSITORY=https://github.com/restic/restic

WORKDIR /restic

RUN git checkout v0.16.0
# An older version of module golang.org/x/net is used by restic or it's indirect deps
# manually update go.mod file to use latest version v0.17.0
RUN echo "replace golang.org/x/net => golang.org/x/net v0.17.0" >> go.mod && go mod tidy
RUN git checkout v0.16.2
RUN go run build.go

# Build kopia binary from specific commit
Expand All @@ -34,10 +31,6 @@ WORKDIR /kopia

RUN git checkout ${kopia_build_commit}

# An older version of module golang.org/x/net is used by restic or it's indirect deps
# manually update go.mod file to use latest version v0.17.0
RUN echo "replace golang.org/x/net => golang.org/x/net v0.17.0" >> go.mod && go mod tidy

RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o kopia \
-ldflags="-X github.com/kopia/kopia/repo.BuildVersion=$(git show --no-patch --format='%cs-%h') \
-X github.com/kopia/kopia/repo.BuildInfo=$(git show --no-patch --format='%cI-%H')-${kopia_build_commit} \
Expand Down

0 comments on commit 3051116

Please sign in to comment.