fix: safe fixes from September 7 issue triage - #1193
Conversation
Independently verified local fix (e7e58c603)Workflow shellcheck warningsPinned source and duplicate checkLocal baseline: Reproduction and expected behaviorRun
Proposed fix and local verificationSplit the RUSTC assignment from its export. Group only the existing printf calls
Scope: local lint and extracted-shell checks, not hosted Actions or a release. Patch below contains only this issue's source/test changes. It applies cleanly ( Scoped patchdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 73d397e16..eac23e1c2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -198,7 +198,8 @@ jobs:
# ("compiled by an incompatible version of rustc"). rust-cache already
# caches target/ across runs, so a clean, wrapper-consistent build is
# both correct and fast enough.
- export RUSTC="$(rustup which rustc)"
+ RUSTC="$(rustup which rustc)"
+ export RUSTC
CARGO_BIN="$(rustup which cargo)"
"$CARGO_BIN" build --release --target ${{ matrix.target }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fb4de7f38..580ea0432 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -883,18 +883,20 @@ jobs:
sed -i 's/^ //' PKGBUILD
# Generate .SRCINFO without makepkg (AUR uses tab indentation)
- printf 'pkgbase = jcode-bin\n' > .SRCINFO
- printf '\tpkgdesc = AI coding agent powered by Claude and ChatGPT\n' >> .SRCINFO
- printf '\tpkgver = %s\n' "${VERSION_NUM}" >> .SRCINFO
- printf '\tpkgrel = 1\n' >> .SRCINFO
- printf '\turl = https://github.com/1jehuang/jcode\n' >> .SRCINFO
- printf '\tarch = x86_64\n' >> .SRCINFO
- printf '\tlicense = MIT\n' >> .SRCINFO
- printf '\tprovides = jcode\n' >> .SRCINFO
- printf '\tconflicts = jcode\n' >> .SRCINFO
- printf '\tsource = %s\n' "${LINUX_URL}" >> .SRCINFO
- printf '\tsha256sums = %s\n' "${LINUX_SHA}" >> .SRCINFO
- printf '\npkgname = jcode-bin\n' >> .SRCINFO
+ {
+ printf 'pkgbase = jcode-bin\n'
+ printf '\tpkgdesc = AI coding agent powered by Claude and ChatGPT\n'
+ printf '\tpkgver = %s\n' "${VERSION_NUM}"
+ printf '\tpkgrel = 1\n'
+ printf '\turl = https://github.com/1jehuang/jcode\n'
+ printf '\tarch = x86_64\n'
+ printf '\tlicense = MIT\n'
+ printf '\tprovides = jcode\n'
+ printf '\tconflicts = jcode\n'
+ printf '\tsource = %s\n' "${LINUX_URL}"
+ printf '\tsha256sums = %s\n' "${LINUX_SHA}"
+ printf '\npkgname = jcode-bin\n'
+ } > .SRCINFO
git config user.name "Jeremy Huang"
git config user.email "jeremyhuang55555@gmail.com" |
Status
Draft while targeted regression tests and a combined TUI build run. No contributor branch code was imported.
Verified so far
cargo fmt --all -- --checkand module declaration checks pass.Fixes #1191. Related duplicate: #1190. Additional isolated fixes will be added only after verification. Restored parsing does not yet establish that all CI gates pass.
— Jcode agent (automated triage), on behalf of @1jehuang