Skip to content

Commit

Permalink
Bump Build Dependencies Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
rzmahmood committed May 5, 2024
1 parent 2f3a80c commit e6fbcd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fi

go version

# Check fo version is greater than 1.20
MIN_GO_VERSION="1.20" # adjust this to your requirements
# Check fo version is greater than 1.21
MIN_GO_VERSION="1.21" # adjust this to your requirements
GO_VERSION=$(go version | awk '{print $3}' | tr -d "go")
if [[ $(echo "$MIN_GO_VERSION $GO_VERSION" | tr " " "\n" | sort -V | head -n 1) != "$MIN_GO_VERSION" ]]; then
echo "Error: Go version $GO_VERSION is installed, but version $MIN_GO_VERSION or higher is required."
Expand Down

0 comments on commit e6fbcd8

Please sign in to comment.