Skip to content

Commit 03602e4

Browse files
chore: update dasel and jq
1 parent cc64591 commit 03602e4

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.github/workflows/cli.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ jobs:
145145
- name: "Install deps"
146146
run: |
147147
mkdir -p "${HOME}/bin"
148-
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
148+
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v2.5.0/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
149149
150150
- name: "Prepare .env file"
151151
run: |
152152
export PATH="${PATH}:${HOME}/bin"
153153
154-
version=$(dasel select -p toml -s ".workspace.package.version" -f "Cargo.toml")
154+
version=$(dasel select -r toml -w - -s ".workspace.package.version" -f "Cargo.toml")
155155
if [[ "$version" =~ (rc|beta|alpha) ]]; then
156156
export DATA_FULL_DOMAIN="https://data.master.clades.nextstrain.org/v3"
157157
fi
@@ -300,7 +300,7 @@ jobs:
300300
run: |
301301
mkdir -p "${HOME}/bin"
302302
export PATH="${HOME}/bin:${PATH}"
303-
curl -fsSL "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64" -o ${HOME}/bin/jq && chmod +x ${HOME}/bin/jq
303+
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64" -o ${HOME}/bin/jq && chmod +x ${HOME}/bin/jq
304304
305305
- name: "Download build artifacts"
306306
uses: actions/download-artifact@v4
@@ -418,9 +418,9 @@ jobs:
418418
run: |
419419
mkdir -p "${HOME}/bin"
420420
curl -fsSL "https://github.com/cli/cli/releases/download/v2.10.1/gh_2.10.1_linux_amd64.tar.gz" | tar xz -C "${HOME}/bin" --strip-components=2 gh_2.10.1_linux_amd64/bin/gh
421-
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
421+
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v2.5.0/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
422422
curl -fsSL "https://github.com/orhun/git-cliff/releases/download/v0.7.0/git-cliff-0.7.0-x86_64-unknown-linux-gnu.tar.gz" | tar -C "${HOME}/bin" --strip-components=1 -xz "git-cliff-0.7.0/git-cliff"
423-
curl -fsSL "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64" -o ${HOME}/bin/jq && chmod +x ${HOME}/bin/jq
423+
curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64" -o ${HOME}/bin/jq && chmod +x ${HOME}/bin/jq
424424
425425
- name: "Publish build artifacts to GitHub releases"
426426
run: |
@@ -454,7 +454,7 @@ jobs:
454454
- name: "Install deploy dependencies"
455455
run: |
456456
mkdir -p "${HOME}/bin"
457-
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
457+
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v2.5.0/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
458458
459459
- name: "Login to Docker Hub"
460460
uses: docker/login-action@v3

docker/docker-dev.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ RUN set -euxo pipefail >/dev/null \
167167

168168
# Install jq, a tool to query JSON files
169169
RUN set -euxo pipefail >/dev/null \
170-
&& curl -fsSL -o "/usr/bin/jq" "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64" \
170+
&& curl -fsSL -o "/usr/bin/jq" "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64" \
171171
&& chmod +x "/usr/bin/jq" \
172172
&& jq --version
173173

@@ -207,7 +207,7 @@ USER ${UID}
207207
COPY rust-toolchain.toml "${HOME}/rust-toolchain.toml"
208208
RUN set -euxo pipefail >/dev/null \
209209
&& cd "${HOME}" \
210-
&& RUST_TOOLCHAIN=$(dasel select -p toml -s ".toolchain.channel" -f "${HOME}/rust-toolchain.toml") \
210+
&& RUST_TOOLCHAIN=$(dasel select -r toml -w - -s ".toolchain.channel" -f "${HOME}/rust-toolchain.toml") \
211211
&& curl --proto '=https' -sSf https://sh.rustup.rs > rustup-init \
212212
&& chmod +x rustup-init \
213213
&& ./rustup-init -y --no-modify-path --default-toolchain="${RUST_TOOLCHAIN}" \
@@ -216,14 +216,14 @@ RUN set -euxo pipefail >/dev/null \
216216
# Install toolchain from rust-toolchain.toml and make it default
217217
RUN set -euxo pipefail >/dev/null \
218218
&& cd "${HOME}" \
219-
&& RUST_TOOLCHAIN=$(dasel select -p toml -s ".toolchain.channel" -f "rust-toolchain.toml") \
219+
&& RUST_TOOLCHAIN=$(dasel select -r toml -w - -s ".toolchain.channel" -f "rust-toolchain.toml") \
220220
&& rustup toolchain install "${RUST_TOOLCHAIN}" \
221221
&& rustup default "${RUST_TOOLCHAIN}"
222222

223223
# Install remaining toolchain components from rust-toolchain.toml
224224
RUN set -euxo pipefail >/dev/null \
225225
&& cd "${HOME}" \
226-
&& RUST_TOOLCHAIN=$(dasel select -p toml -s ".toolchain.channel" -f "rust-toolchain.toml") \
226+
&& RUST_TOOLCHAIN=$(dasel select -r toml -w - -s ".toolchain.channel" -f "rust-toolchain.toml") \
227227
&& rustup show \
228228
&& rustup default "${RUST_TOOLCHAIN}"
229229

scripts/build_on_vercel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if ! command cargo &>/dev/null; then
7373
curl -fsSL "https://github.com/TomWright/dasel/releases/download/v${DASEL_VERSION}/dasel_linux_amd64" -o "/usr/bin/dasel"
7474
chmod +x "/usr/bin/dasel"
7575

76-
RUST_TOOLCHAIN=$(dasel select -p toml -s ".toolchain.channel" -f "rust-toolchain.toml")
76+
RUST_TOOLCHAIN=$(dasel select -r toml -w - -s ".toolchain.channel" -f "rust-toolchain.toml")
7777
curl -sSf https://sh.rustup.rs >rustup-init
7878
chmod +x rustup-init
7979
./rustup-init -y --no-modify-path --default-toolchain="${RUST_TOOLCHAIN}"

scripts/cli_get_data_full_domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ THIS_DIR="$(
1616

1717
: "${1:?Branch name is required as the first argument.}"
1818

19-
version=$(dasel select -p toml -s ".workspace.package.version" -f "Cargo.toml")
19+
version=$(dasel select -r toml -w - -s ".workspace.package.version" -f "Cargo.toml")
2020
prerel=$("${THIS_DIR}/semver" get prerel "${version}" | cut -d '.' -f 1)
2121
branch="${1}"
2222

scripts/publish_docker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# - dasel
99
# mkdir -p "${HOME}/bin"
1010
# export PATH="${HOME}/bin:${PATH}"
11-
# curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
11+
# curl -fsSL "https://github.com/TomWright/dasel/releases/download/v2.5.0/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
1212

1313
set -euo pipefail
1414
trap "exit" INT
@@ -41,7 +41,7 @@ declare -a BASE_IMAGES=(
4141
"debian"
4242
)
4343

44-
version=$(dasel select -p toml -s ".workspace.package.version" -f "Cargo.toml")
44+
version=$(dasel select -r toml -w - -s ".workspace.package.version" -f "Cargo.toml")
4545
version_major=$("${THIS_DIR}/semver" get major "${version}")
4646
release_type=$("${THIS_DIR}/semver" get prerel "${version}" | cut -d '.' -f 1)
4747
release_type=${release_type:=latest}

scripts/publish_github

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# mkdir -p "${HOME}/bin"
88
# export PATH="${HOME}/bin:${PATH}"
99
# curl -fsSL "https://github.com/cli/cli/releases/download/v2.10.1/gh_2.10.1_linux_amd64.tar.gz" | tar xz -C "${HOME}/bin" --strip-components=2 gh_2.10.1_linux_amd64/bin/gh
10-
# curl -fsSL "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
11-
# curl -fsSL "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64" -o ${HOME}/bin/jq && chmod +x ${HOME}/bin/jq
10+
# curl -fsSL "https://github.com/TomWright/dasel/releases/download/v2.5.0/dasel_linux_amd64" -o "${HOME}/bin/dasel" && chmod +x "${HOME}/bin/dasel"
11+
# curl -fsSL "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64" -o ${HOME}/bin/jq && chmod +x ${HOME}/bin/jq
1212

1313
set -euo pipefail
1414
trap "exit" INT
@@ -56,7 +56,7 @@ done
5656
[ -z "$repo" ] && echo "--repo is required" >/dev/stderr && exit 1
5757
[ -z "$git_sha" ] && echo "--git_sha is required" >/dev/stderr && exit 1
5858

59-
version=$(dasel select -p toml -s ".workspace.package.version" -f "Cargo.toml")
59+
version=$(dasel select -r toml -w - -s ".workspace.package.version" -f "Cargo.toml")
6060
release_type=$("${THIS_DIR}/semver" get prerel "${version}" | cut -d '.' -f 1)
6161
prerelease_flag=${release_type:+--prerelease}
6262

0 commit comments

Comments
 (0)