Skip to content

Commit

Permalink
fix go1.22 download link in packaging (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin authored May 6, 2024
1 parent b94019c commit f29d521
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/docker/pbm.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN mkdir -p /data/db
COPY --from=mongo_image /bin/mongod /bin/
RUN dnf install epel-release && dnf update && dnf install make gcc krb5-devel iproute-tc libfaketime

RUN curl -sL -o /tmp/golang.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz && \
RUN curl -sL -o /tmp/golang.tar.gz https://go.dev/dl/go1.22.2.linux-amd64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/golang.tar.gz && rm /tmp/golang.tar.gz
ENV PATH=$PATH:/usr/local/go/bin

Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/docker/tests.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM oraclelinux:8 AS base-build
WORKDIR /build
RUN dnf update && dnf install make gcc krb5-devel

RUN curl -sL -o /tmp/golang.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz && \
RUN curl -sL -o /tmp/golang.tar.gz https://go.dev/dl/go1.22.2.linux-amd64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/golang.tar.gz && rm /tmp/golang.tar.gz
ENV PATH=$PATH:/usr/local/go/bin

Expand Down
4 changes: 2 additions & 2 deletions packaging/scripts/mongodb-backup_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ install_golang() {
elif [ x"$ARCH" = "xaarch64" ]; then
GO_ARCH="arm64"
fi
wget https://golang.org/dl/go1.22.linux-${GO_ARCH}.tar.gz -O /tmp/golang1.22.tar.gz
tar --transform=s,go,go1.22, -zxf /tmp/golang1.22.tar.gz
wget https://go.dev/dl/go1.22.2.linux-${GO_ARCH}.tar.gz -O /tmp/go1.22.tar.gz
tar --transform=s,go,go1.22, -zxf /tmp/go1.22.tar.gz
rm -rf /usr/local/go*
mv go1.22 /usr/local/
ln -s /usr/local/go1.22 /usr/local/go
Expand Down

0 comments on commit f29d521

Please sign in to comment.