We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94eda74 commit be53941Copy full SHA for be53941
.cirrus.yml
@@ -119,7 +119,7 @@ task:
119
# Install Go.
120
PREFIX="https://go.dev/dl/"
121
# Find out the latest minor release URL.
122
- eval $(curl -fsSL "${PREFIX}?mode=json" | jq -r --arg Ver "$GO_VERSION" '.[] | select(.version | startswith("go\($Ver)")) | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | "filename=\"" + .filename + "\""')
+ filename=$(curl -fsSL "${PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VERSION." '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
123
curl -fsSL "$PREFIX$filename" | tar Cxz /usr/local
124
# install bats
125
cd /tmp
0 commit comments