Repository navigation
feat: add DEVKIT_LICENSE and fold the changelog into the release group - #1655
Merged
Merged
Conversation
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.
Description
install.sh --forceadds two files a consumer lacks, and neither is a neutral default for a private, release-less repo:LICENSE— the Apache-2.0 template. On a proprietary repo that actively mislabels confidential material as openly licensed, with no way to ship an all-rights-reserved notice instead.CHANGELOG.md— release machinery. Only the release workflows read it, so a repo withDEVKIT_FEATURES_DISABLED=releasenever writes one.Both are add-if-absent
PRESERVE_FILES, so deleting them was not durable: the next forced scaffold put them back, and the deletion had to be repeated at every upgrade.Closes #1651.
Type of Change
feat-- New featureChanges Made
The changelog follows the
releasefeature group (no new knob). Within the template tree the rootCHANGELOG.mdis referenced only by release-group workflows (prepare-release,prepare-hotfix,release-core,release-publish,sync-main-to-dev) — nothing inci.ymlor the hook stack touches it. A separatechangeloggroup would have invented an invalid combination (releaseenabled + changelog disabled breaksprepare-release's freeze step) and the contradiction guard to police it. So:CHANGELOG.mdjoinsfeature_paths release— the copy-exclude is root-anchored, so devkit's own.devcontainer/CHANGELOG.mdmirror is untouched;## Unreleasedentry pointing at an upstream devkit issue.The license gets its own key, because the choice is a text, not an on/off —
DEVKIT_LICENSE:apache-2.0proprietaryassets/licenses/PROPRIETARY(a new file outside the scaffold tree, so the copy can never blind-ship it),{{ORG_NAME}}resolved by the normal substitution pass. Written only whenLICENSEis absent or is still the untouched Apache scaffold copy — the repair path for a repo that already received Apache. A hand-edited file is left in place with a notice; a re-render is a silent no-op.noneLICENSEat all: never added, so a one-time delete sticks.Neither non-default value ever deletes a license file — removing one stays the consumer's own act, like the changelog. An unknown value aborts loudly (mirrors the
DEVKIT_REFS_POLICYguard) and the key round-trips across--forceupgrades like every other manifest knob.--previewnames the selection, sinceLICENSEis then absent from the ADDED report.Not reused:
DEVKIT_UPGRADE_EXCLUDE(the issue's option 3). It resets paths withgit checkout --after the scaffold, which cannot remove a newly re-added untracked file.Docs:
docs/MIGRATION.md(knob table row, thereleasegroup bullet, and a new "A private consumer: license and changelog" section) anddocs/SOLO_ADOPTION.md(a solo repo is often a private one).Changelog Entry
(full entries with sub-bullets are in
CHANGELOG.mdunder## Unreleased)Testing
just test)tests/bats/init-workspace.bats(13 new, all green):release-disabled fresh scaffold ships no rootCHANGELOG.mdwhile.devcontainer/CHANGELOG.mdstays;DEVKIT_LICENSEstill scaffolds Apache-2.0 with{{ORG_NAME}}resolved;none: absent on a fresh scaffold, a delete sticks, the key round-trips, and an existingLICENSEis never deleted;proprietary: replaces the stock Apache copy, resolves the org placeholder, is quiet and stable on re-upgrade, and leaves a hand-editedLICENSEalone with a notice;proprietaryon a fresh scaffold renders straight away (no Apache ever lands) and the result is writable — the scaffold assets are read-only store files in the image;--previewnames the selection and the outcome: what will be created, what will be replaced, what is left in place — the copy-exclude keepsLICENSEout of the classified listings, so the report has to say it explicitly.Plus rows in the three generic knob loops (ships-empty, write-back, invalid-value ⇒ loud abort),
DEVKIT_LICENSEintests/test_vig_os_manifest.py, and the new asset intests/test_image.py's image-contents list.Checklist
CHANGELOG.mdin the[Unreleased]sectionFollow-up (not in this PR)
.devcontainer/justfile.ghstill shipsreset-changelog/changelog-previewto arelease-disabled consumer, which now reference a file the scaffold no longer provides. That is a pre-existing question about what thereleasefeature group owns on thejustsurface (the whole release-dispatch recipe set already ships to repos whose release workflows were pruned) — filed as #1656 rather than scoped in here.