Skip to content

0.8.9: quotes record refuses outside a git checkout (no value moves) - #26

Merged
loggger101 merged 1 commit into
mainfrom
record-from-checkout
Dec 1, 2026
Merged

loggger101 merged 1 commit into
mainfrom
record-from-checkout

Conversation

@loggger101

Copy link
Copy Markdown
Owner

spacevalue quotes record writes into the package's own quotes/ folder. For an installed copy, that folder is in site-packages. There it fetched the closes, wrote the snapshot and its SHA256SUMS line, printed wrote ... and exited 0. The file was never committed, and a release is built only from a committed snapshot. This was seen for real on a machine with a stale global install.

Change

  • quotes record now exits 1 with a FAIL line on stderr, before fetching anything, unless the package runs from a git checkout of itself. The check reuses 0.8.8's _source_state().
  • The README says to record in a clone (pip install -e .) and commit the new file.
  • Two tests: the command refuses outside a checkout without fetching or writing, and runs inside one.

Verification

  • 210 tests pass locally. Data contract unchanged at 1.22.1. Rebuilt from metals-2026-10-07, all eight tables equal prices-2026-11-20 byte for byte.
  • A dry run of "publish prices" on main (run 46717414044) confirmed 0.8.8's provenance step: the manifest names main's head commit, 008f8a8, with a clean tree.

`spacevalue quotes record` writes into the package's own quotes/ folder.
For an installed copy that is site-packages: it fetched the closes, wrote
the snapshot and its SHA256SUMS line, printed "wrote ..." and exited 0,
and the file was never committed, though a release is built only from a
committed snapshot. It now exits 1 with a FAIL line unless the package
runs from a git checkout of itself, and the README says to record in a
clone and commit the new file.

A dry run of "publish prices" on main (run 46717414044) confirmed 0.8.8's
provenance step: the manifest names main's head commit, clean.

Data contract unchanged at 1.22.1. Rebuilt from metals-2026-10-07, all
eight tables equal prices-2026-11-20 byte for byte. 210 tests pass.
@loggger101
loggger101 merged commit 6ce4c76 into main Dec 1, 2026
15 of 17 checks passed
@loggger101
loggger101 deleted the record-from-checkout branch December 1, 2026 22:04
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