Skip to content

Commit

Permalink
Add GO 1.23 support
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbasstard committed Nov 5, 2024
1 parent 1bd6ad2 commit 444f0cf
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
4 changes: 3 additions & 1 deletion al2/aarch64/standard/3.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,12 @@ RUN phpenv update \
ENV GOLANG_20_VERSION="1.20.14"
ENV GOLANG_21_VERSION="1.21.11"
ENV GOLANG_22_VERSION="1.22.4"
ENV GOLANG_23_VERSION="1.23.1"

RUN goenv install $GOLANG_20_VERSION && \
goenv install $GOLANG_21_VERSION && \
goenv install $GOLANG_22_VERSION && rm -rf /tmp/*
goenv install $GOLANG_22_VERSION && \
goenv install $GOLANG_23_VERSION && rm -rf /tmp/*

#**************** END GOLANG ****************************************************

Expand Down
7 changes: 5 additions & 2 deletions al2/aarch64/standard/3.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: 0.1
runtimes:
java:
versions:

corretto21:
commands:
- echo "Installing corretto(OpenJDK) version 21 ..."
Expand Down Expand Up @@ -85,6 +84,10 @@ runtimes:
done
golang:
versions:
1.23:
commands:
- echo "Installing Go version 1.23 ..."
- goenv global $GOLANG_23_VERSION
1.22:
commands:
- echo "Installing Go version 1.22 ..."
Expand Down Expand Up @@ -200,4 +203,4 @@ runtimes:
commands:
- echo "Installing custom .Net version $VERSION ..."
- /usr/local/bin/dotnet-install.sh -v $VERSION && rm -rf /tmp/*
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $VERSION --roll-forward feature
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $VERSION --roll-forward feature
4 changes: 3 additions & 1 deletion al2/x86_64/standard/5.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,15 @@ ENV PATH="/root/.goenv/shims:/root/.goenv/bin:/go/bin:$PATH"
ENV GOENV_DISABLE_GOPATH=1
ENV GOPATH="/go"

ENV GOLANG_23_VERSION="1.23.1"
ENV GOLANG_22_VERSION="1.22.4"
ENV GOLANG_21_VERSION="1.21.11"
ENV GOLANG_20_VERSION="1.20.14"
ENV GOENV_DISABLE_GOPATH=1
ENV GOPATH="/go"

RUN goenv install $GOLANG_22_VERSION \
RUN goenv install $GOLANG_23_VERSION \
&& goenv install $GOLANG_22_VERSION \
&& goenv install $GOLANG_21_VERSION \
&& goenv install $GOLANG_20_VERSION \
&& goenv global $GOLANG_20_VERSION \
Expand Down
4 changes: 4 additions & 0 deletions al2/x86_64/standard/5.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ runtimes:
done
golang:
versions:
1.23:
commands:
- echo "Installing Go version 1.23 ..."
- goenv global $GOLANG_23_VERSION
1.22:
commands:
- echo "Installing Go version 1.22 ..."
Expand Down
4 changes: 3 additions & 1 deletion ubuntu/standard/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,15 @@ ENV PATH="/root/.goenv/shims:/root/.goenv/bin:/go/bin:$PATH"
ENV GOENV_DISABLE_GOPATH=1
ENV GOPATH="/go"

ENV GOLANG_23_VERSION="1.23.1"
ENV GOLANG_22_VERSION="1.22.4"
ENV GOLANG_21_VERSION="1.21.11"
ENV GOLANG_20_VERSION="1.20.14"
ENV GOENV_DISABLE_GOPATH=1
ENV GOPATH="/go"

RUN goenv install $GOLANG_22_VERSION \
RUN goenv install $GOLANG_23_VERSION \
&& goenv install $GOLANG_22_VERSION \
&& goenv install $GOLANG_21_VERSION \
&& goenv install $GOLANG_20_VERSION \
&& goenv global $GOLANG_20_VERSION \
Expand Down
6 changes: 5 additions & 1 deletion ubuntu/standard/7.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ runtimes:
done
golang:
versions:
1.23:
commands:
- echo "Installing Go version 1.23 ..."
- goenv global $GOLANG_23_VERSION
1.22:
commands:
- echo "Installing Go version 1.22 ..."
Expand Down Expand Up @@ -193,4 +197,4 @@ runtimes:
commands:
- echo "Installing custom .Net version $VERSION ..."
- /usr/local/bin/dotnet-install.sh -v $VERSION && rm -rf /tmp/*
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $VERSION --roll-forward feature
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $VERSION --roll-forward feature

0 comments on commit 444f0cf

Please sign in to comment.