You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Second hot-fix to the v1.0.0 pipeline. v1.0.1 unblocked Swift; the
arch-tarball step then hit two more issues:
1. scripts/package_release.sh called tar with GNU-only flags
(--owner=0 --group=0 --numeric-owner) that macOS bsdtar rejects.
The fallback branch I added for --no-mac-metadata also kept
those flags, so the second tar invocation failed too. End-state
on macos-14: workflow died at "==> tarballing" with no asset
uploaded.
2. PyInstaller-frozen binary crashed on first run with
`ImportError: attempted relative import with no known parent
package`. PyInstaller compiled src/diting/cli.py as a top-level
script, stripping the diting package context that the module's
`from .x import y` imports rely on. Only surfaces when the
frozen binary is actually executed — the tarball would have
uploaded successfully and install.sh would have downloaded a
broken binary.
Both fixes verified end-to-end by running
`uv run --group release bash scripts/package_release.sh 1.0.2-rc`
locally, extracting the resulting tarball, and confirming
`diting --help` exits 0 with usage text.
Fixes:
- scripts/package_release.sh: drop GNU-only tar flags; plain
`tar -czf` runs everywhere. SHA256 in SHASUMS256.txt is the real
integrity guarantee.
- scripts/frozen_entry.py (new): PyInstaller entry stub that does
`from diting.cli import main; main()` so the package context is
preserved.
- scripts/build_frozen.py: target the stub via --paths src/, not
src/diting/cli.py.
- .gitignore: ignore the PyInstaller-generated diting.spec and the
Claude Code scheduled-task lockfile.
Bump to v1.0.2; v1.0.0 and v1.0.1 never produced consumable assets,
so end users should install v1.0.2 directly. install.sh resolves
"latest" by default, so curl ... | bash auto-picks v1.0.2 with no
flag change.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments