Skip to content

fix(selfupdate): accept dot-slash checksum paths - #66

Merged
wesm merged 1 commit into
mainfrom
fix/selfupdate-checksum-paths
Aug 8, 2026
Merged

fix(selfupdate): accept dot-slash checksum paths#66
wesm merged 1 commit into
mainfrom
fix/selfupdate-checksum-paths

Conversation

@wesm

@wesm wesm commented Aug 8, 2026

Copy link
Copy Markdown
Member

Why

ExtractChecksum documents sha256sum-style input, but sha256sum -- ./* emits ./filename entries. The parser strips binary-mode * markers but compares ./filename literally against the archive name, so valid checksum manifests can be treated as missing.

Behavior

Normalize one leading ./ after the optional * marker and cover both forms in the parser table. This preserves strict exact matching while accepting the path spelling emitted by GNU sha256sum.

The self-update checksum parser promises sha256sum-style input, but GNU sha256sum emits ./-prefixed names when invoked with a ./ glob. Exact filename matching then discarded valid checksums and caused updates to fail before archive download. Normalize one leading ./ after the optional binary-mode marker while preserving strict asset-name matching.

Generated with Codex
@roborev-ci

roborev-ci Bot commented Aug 8, 2026

Copy link
Copy Markdown

roborev: Combined Review (97776ba)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 17s

@wesm
wesm merged commit b636ead into main Aug 8, 2026
11 checks passed
@wesm
wesm deleted the fix/selfupdate-checksum-paths branch August 8, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant