Say which version new-version copied from, with --json #10

Merged
jeff merged 1 commit from new-version-json into main 2026-10-14 01:28:50 -05:00
Owner

For jeff/winget-submit#1. The submission's pull request body names the version it was copied from, and only wingetsource knows winget's version ordering.

  • new-version --json prints {"directory": ..., "copied_from": ...}. Without it the output is unchanged: the directory alone.
  • new_version() returns a Written(directory, copied_from) rather than a bare path. Nothing outside the tests called it.

The option is added and nothing is changed or removed, so the command line stays compatible as ADR 0004 requires. Tested with a new unit test, and by a --json run on a copy of the tree, which printed {"directory": "manifests/j/JCOllie/Clipwatch/0.2.1", "copied_from": "0.2.0"}.

🤖 Generated with Claude Code

https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw

For jeff/winget-submit#1. The submission's pull request body names the version it was copied from, and only `wingetsource` knows winget's version ordering. - `new-version --json` prints `{"directory": ..., "copied_from": ...}`. Without it the output is unchanged: the directory alone. - `new_version()` returns a `Written(directory, copied_from)` rather than a bare path. Nothing outside the tests called it. The option is added and nothing is changed or removed, so the command line stays compatible as ADR 0004 requires. Tested with a new unit test, and by a `--json` run on a copy of the tree, which printed `{"directory": "manifests/j/JCOllie/Clipwatch/0.2.1", "copied_from": "0.2.0"}`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw
say which version new-version copied from, with --json
All checks were successful
test / test (pull_request) Successful in 1m46s
test / publish (pull_request) Has been skipped
test / test (push) Successful in 1m41s
test / publish (push) Has been skipped
58219592c8
`new-version --json` prints the new directory and the version it was
copied from, for the pull request jeff/winget-submit opens. It is an
added option, so the command line stays compatible (ADR 0004).

Refs jeff/winget-submit#1

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01D31MsLkM9DkCauP1EB2zgw
jeff merged commit a840d90ecc into main 2026-10-14 01:28:50 -05:00
jeff deleted branch new-version-json 2026-10-14 01:28:59 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jeff/winget-pkgs!10
No description provided.