Commit Graph
3 Commits
Author SHA1 Message Date
cflmy 476c04f6fe feat: publish deterministic tar.gz and zip archives for platform-independent libraries (marqdo#106)
Every platform-independent stdlib/extension release now ships the same reviewed
file set as both a deterministic tar.gz (Linux/POSIX convention) and a
deterministic zip (Windows convention) with per-format sha256 sidecars. The zip
uses fixed DOS timestamps, create_system=3, regular-file 0644 attributes, UTF-8
name flags and deterministic deflate; both archives are double-built, verified
as identical on disk to the exact commit blobs, and cross-checked against each
other. Existing releases stay immutable; the rule applies to new versions.

Tests updated for the dual-format artifact contract. The website projection is
extended in a follow-up commit to classify .zip as an archive.
2026-12-03 08:54:34 +08:00
cflmy b10b360cf4 fix: harden the component release transaction after review
- Build the archive from exact Git objects (git ls-tree / git cat-file) with
  fixed tar and gzip metadata instead of git archive + gzip, so export-ignore,
  export-subst and local attribute files cannot silently drop or rewrite
  released bytes; verify every member and byte against the commit blobs.
- Select the same-SHA CI pipeline deterministically (lowest successful number)
  so re-running the transaction reproduces already published evidence.
- Preflight the remote tag identity, require channel consistency on idempotent
  re-runs, add --reset-draft recovery for interrupted drafts, and stop
  forwarding the publish token across redirects.
- Reject case/NFC collisions, backslash/control-character members, wildcard
  allow entries, unknown/duplicate dependency fields; honor --source-sha and
  --out-dir in check; clean temporary directories.
- Fix the documented/template dependency syntax and add regression tests for
  determinism, export attributes, collisions, deterministic CI selection and
  remote tag identity.
2026-12-02 23:12:44 +08:00
cflmy 1228ed887c feat: add the single component release transaction for #96
ci/woodpecker/pr/eco Pipeline is pending
Add one shared, self-contained component release implementation for stdlib and
extension repositories (marqdo#96 M1): deterministic allowlisted packaging of
the exact tagged commit, release-evidence.json with same-SHA Woodpecker CI
discovery, and an immutable Gitea draft->publish transaction with byte readback.

The kit is pinned by root commit + sha256 in each component repository's
protected tag workflow; ordinary push/PR lanes only run the deterministic
package self-check and never receive the publish token. No stdlib/ext specific
manifest or second release service is introduced.

Adds contract tests for packaging determinism, archive path safety, evidence
shape, dependency identity, CI discovery and publish ordering.
2026-12-02 22:17:25 +08:00