Skip to content

fix(library): do not take Windows 8.3 short paths for junctions - #3

Merged
chialecode merged 1 commit into
mainfrom
codex/fix-windows-short-paths
Nov 9, 2026
Merged

chialecode merged 1 commit into
mainfrom
codex/fix-windows-short-paths

Conversation

@chialecode

Copy link
Copy Markdown
Owner

Fix: Windows 8.3 short paths were taken for directory junctions

The first build-only run of release.yml (42607654678) failed in tools/release's own tools/check on windows-2025, before signing. Nothing was published.

Cause. The runner's %TEMP% lives under an 8.3 short name (RUNNER~1). rejectDirectoryLinks compared filepath.EvalSymlinks(dir) with dir. EvalSymlinks also expands short names, so every library path under the temp directory was refused as a junction, and 19 tests failed. The bug dates from M1; ci.yml runs on Ubuntu only.

Fix. Compare with the GetLongPathName form, which expands short names without following links; junctions are still rejected. TestShortPathNamesAreNotLinksButJunctionsAre covers both cases.

The same commit records ACT-008 (release environment, secret, allowlist) and the merge of M2 in docs/delivery/status.md and USER-ACTIONS.md.

Validation (Windows)

  • go test ./... passes with TMP/TEMP set to an 8.3 short path. Before the fix, the same 19 tests failed.
  • go run ./tools/check passes.
  • go vet for Linux passes.

rejectDirectoryLinks compared filepath.EvalSymlinks(dir) with dir to find
directory junctions. On Windows EvalSymlinks also expands 8.3 short names,
so a save location such as C:\Users\RUNNER~1\AppData\Local\Temp\... (the
temp directory of GitHub's Windows runners) was taken for a junction and
every library path under it was refused: 19 tests failed in the first
build-only run of release.yml (run 42607654678), which stopped before
signing. Compare with the GetLongPathName form, which expands short names
without following links; junctions are still rejected.

Also records ACT-008 (release environment, secret, allowlist) and the
merge of M2 in the delivery status and USER-ACTIONS.

Signed-off-by: chialecode <315431287+chialecode@users.noreply.github.com>
@chialecode
chialecode merged commit 6c27851 into main Nov 9, 2026
3 checks passed
@chialecode
chialecode deleted the codex/fix-windows-short-paths branch November 9, 2026 11:29
chialecode added a commit that referenced this pull request Nov 26, 2026
- Add one-click secondary "开启定时检查" (and "保留定时检查" in batch remove mode) action button on auto-cache dependency warnings across Subscription Detail, new/import preset pickers, and multi-tag batch dialog (Issue #109 #3).
- Preserve an existing future nextRunAt across routine subscription writes and unrelated settings saves so non-schedule edits never postpone or starve scheduled checks; recompute immediately on 0<->1 active transitions or schedule parameter changes.
- Invalidate stale 20s UI checkPlan cache in saveSettings(), refreshSubscriptions(), and syncSelectedSubAfterTagBatch(), and distinguish PlanOff (manual schedule mode) from PlanUnauth in Settings > 订阅与直播.
- Reset AddSubPreset on opening the Add Subscription modal and update audit test comment; expand backend/UI tests and uishots assertions.

Signed-off-by: chialecode <315431287+chialecode@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant