Skip to content

Commit

Permalink
fix(golang): support v1.21+
Browse files Browse the repository at this point in the history
- fixes #1287
  • Loading branch information
viceice committed Aug 9, 2023
1 parent ce37682 commit 803978d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usr/local/containerbase/tools/v2/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ function install_tool () {
prepare_tool
fi

# fix version
# fix version, only for go 1.20 and below
GOLANG_FILE_VERSION=${TOOL_VERSION}
if [[ "${PATCH}" == "0" ]]; then
if [[ ($MAJOR -lt 1 || ($MAJOR -eq 1 && $MINOR -lt 21)) && "${PATCH}" == "0" ]]; then
GOLANG_FILE_VERSION="${MAJOR}.${MINOR}"
fi

Expand Down

0 comments on commit 803978d

Please sign in to comment.