Repository navigation
feat(cli): sync versioned schema url in codeint.json during codeint update - #135
Merged
Merged
Conversation
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Keep
codeint.jsonpinned to a versioned$schemaURL:codeint initalready writesv{version}, andcodeint updatenow updates that$schematag in the current repository'scodeint.jsonwhenever an upgrade (or in-place sync) runs. Also updatesREADME.mdanddocs/reference.mdto show the versioned$schemaURL and document this behavior.Tier
Tier 1 from the tier check: CLI
updatecommand enhancement, integration test, and documentation.Task
Owner request before
v0.2.0:codeint initwrites the versioned$schemaURL (published_schema_address())codeint updateto keepcodeint.json's$schematag in sync with the installed release tagupdate_syncs_versioned_schema_in_codeint_jsonREADME.mdanddocs/reference.mdFail-first test
crates/cli/tests/update.rs::update_syncs_versioned_schema_in_codeint_jsoncodeint updatereplaced the binary without updating$schemaincodeint.jsonupdate.rsand 5 tests inreference)Checks
cargo test --locked --package codeint-cli --test update --test referencecargo clippy --workspace --all-targets --locked -- -D warnings./target/release/codeint diff origin/mainlefthookpre-commit hooksSafety proof
Not applicable: Tier 0 or 1.
Runtime evidence
Verified via
crates/cli/tests/update.rs::update_syncs_versioned_schema_in_codeint_jsonrunning the realcodeintbinary against a staged release archive and temporary Git repository containingcodeint.json.Gaps