Skip to content

Commit 465ed5f

Browse files
committed
taplo fmt
1 parent 2b7dfc0 commit 465ed5f

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

.mise/config.maint.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ description = "Tar the local wasm-pack pkg/ + upload to the rp-v<N> release"
184184
# pins HEAD's short SHA into the asset filename, tars the wasm-pack pkg/
185185
# (stripping the upstream package.json + README -- pywasm1 writes its own),
186186
# uploads + sha256 sidecar, then auto-edits in lockstep: the data.toml
187-
# [asset.*] entry, the rp_wasm_short var, and the [tools."http:rp-wasm"]
187+
# [asset.*] entry, the a_rp_wasm_short var, and the [tools."http:rp-wasm"]
188188
# version + checksum fields. After the bump the next `mise install`
189189
# downloads + sha-verifies + extracts the new tarball automatically;
190190
# build-ws-pywasm1-module reads from vars.rp_wasm_dir (templated against
191-
# rp_wasm_short) with no further edits. `tar` is the host's; maint is
191+
# a_rp_wasm_short) with no further edits. `tar` is the host's; maint is
192192
# Linux/macOS-only.
193193
run = """
194194
rp_dir="${RUSTPYTHON_DIR:-$HOME/rust/RustPython}"
@@ -208,7 +208,7 @@ actual=$(coreutils cut -c1-64 "${tarball}.sha256")
208208
gh release upload "$RP_RELEASE" --clobber --repo "$GH_REPO" "$tarball" "${tarball}.sha256"
209209
210210
# Update the in-repo manifests in lockstep -- data.toml's [asset.*]
211-
# row, .mise/config.toml's rp_wasm_short var, and the [tools."http:rp-wasm"]
211+
# row, .mise/config.toml's a_rp_wasm_short var, and the [tools."http:rp-wasm"]
212212
# version + checksum fields. checksums.rego cross-checks them on next
213213
# `mise run check`; mise itself re-verifies the checksum at install
214214
# time so a missed update fails loudly.
@@ -218,8 +218,8 @@ augtool --transform="Toml incl $cksum_path" --autosave <<EOF
218218
set "/files$cksum_path/table[. = 'asset.\"$asset\"']/entry[. = 'sha256']/string" "$actual"
219219
EOF
220220
augtool --transform="Toml incl $mise_path" --autosave <<EOF
221-
set "/files$mise_path/table[. = 'vars']/entry[. = 'rp_wasm_short']/string" "$short"
222-
set "/files$mise_path/table[. = 'vars']/entry[. = 'rp_wasm_asset']/string" "$asset"
221+
set "/files$mise_path/table[. = 'vars']/entry[. = 'a_rp_wasm_short']/string" "$short"
222+
set "/files$mise_path/table[. = 'vars']/entry[. = 'a_rp_wasm_asset']/string" "$asset"
223223
set "/files$mise_path/table[. = 'tools.\"http:rp-wasm\"']/entry[. = 'version']/string" "$short"
224224
set "/files$mise_path/table[. = 'tools.\"http:rp-wasm\"']/entry[. = 'checksum']/string" "sha256:$actual"
225225
EOF

.mise/config.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ url = "https://github.com/edge-toolkit/core/releases/download/rp-v1/rustpython-0
242242
# asset filename in data.toml and the url here.
243243
[tools."http:rp-wasm"]
244244
checksum = "sha256:7b81d53f5b3a63c60fc2bc1717e87466026d796ec522b925f009532c7b0291f3"
245-
url = "https://github.com/edge-toolkit/core/releases/download/{{ vars.a_rp_release }}/{{ vars.rp_wasm_asset }}"
245+
url = "https://github.com/edge-toolkit/core/releases/download/{{ vars.a_rp_release }}/{{ vars.a_rp_wasm_asset }}"
246246
version = "08a1d6f"
247247

248248
[tools."http:augeas"]
@@ -368,19 +368,19 @@ pip_for_rustpython_wheel_url = ":http:packages/{{ vars.pip_for_rustpython_sha }}
368368
# wasm-pack --target web; `freeze-stdlib` is the default crates/wasm
369369
# feature so the .wasm embeds the Python stdlib (no RUSTPYTHONPATH dance
370370
# needed at consumer-side). Tracks main HEAD so the upstream `pip` audit-
371-
# hook fix (RustPython#7956) is in. rp_wasm_asset pins the upstream short
371+
# hook fix (RustPython#7956) is in. a_rp_wasm_asset pins the upstream short
372372
# SHA; config/upstream-cache/data.toml records the matching SHA256; built + uploaded
373373
# by config.maint.toml's `publish-rp-wasm-to-release` (sharing the rp-v<N>
374374
# release tag with the native rustpython binary builds).
375-
# `rp_wasm_short` is the canonical version source -- the upstream
375+
# `a_rp_wasm_short` is the canonical version source -- the upstream
376376
# RustPython commit's 7-char short SHA. rp_wasm_dir templates against
377377
# it, and the publish-rp-wasm-to-release maint task bumps it (plus
378-
# rp_wasm_asset, the tool entry's version + checksum, and the
379-
# data.toml asset row) in one go. rp_wasm_asset stays a literal
378+
# a_rp_wasm_asset, the tool entry's version + checksum, and the
379+
# data.toml asset row) in one go. a_rp_wasm_asset stays a literal
380380
# string because checksums.rego reads the raw TOML and needs the
381381
# filename verbatim to cross-check the data.toml [asset.*] entry.
382-
rp_wasm_asset = "rustpython-wasm-08a1d6f.tar.gz"
383-
rp_wasm_short = "08a1d6f"
382+
a_rp_wasm_asset = "rustpython-wasm-08a1d6f.tar.gz"
383+
a_rp_wasm_short = "08a1d6f"
384384
# Install dir for the [tools."http:rp-wasm"] tarball -- mise extracts
385385
# to `installs/http-rp-wasm/<version>/`. Picks the per-OS install
386386
# root inline: on Windows mise uses %LOCALAPPDATA%\mise (config.toml's
@@ -394,13 +394,13 @@ rp_wasm_short = "08a1d6f"
394394
# ("C:/Users/runneradmin/AppData/Local"), and a mixed-slash path
395395
# trips uutils-coreutils' Windows path normalizer (`cp: The system
396396
# cannot find the path specified. (os error 3)`).
397+
gh_http = "--http-url https://github.com --progress --ignore-existing"
397398
rp_wasm_dir = '''{% if os() == "windows" -%}
398399
{%- set base = get_env(name="LOCALAPPDATA", default="") | replace(from=`\`, to="/") -%}
399-
{{- base -}}/mise/installs/http-rp-wasm/{{- vars.rp_wasm_short -}}
400+
{{- base -}}/mise/installs/http-rp-wasm/{{- vars.a_rp_wasm_short -}}
400401
{%- else -%}
401-
{{- vars.mise_data_dir -}}/installs/http-rp-wasm/{{- vars.rp_wasm_short -}}
402+
{{- vars.mise_data_dir -}}/installs/http-rp-wasm/{{- vars.a_rp_wasm_short -}}
402403
{%- endif %}'''
403-
gh_http = "--http-url https://github.com --progress --ignore-existing"
404404

405405
[env]
406406
# Comma-separated list of every language env (one per .mise/config.<lang>.toml).

0 commit comments

Comments
 (0)