Add MPL-2.0 license to config library #22
Labels
No labels
harness
proj-core-console
proj-core-demo
proj-core-edit
proj-core-init
proj-core-lib
proj-core-login
proj-core-res
proj-core-sh
proj-core-theme
proj-docs
proj-extra-calc
proj-extra-code
proj-extra-playbook
proj-extra-sheets
proj-harness
proj-os
residual
tier-0-trivial
tier-1-easy
tier-2-medium
tier-3-hard
tier-4-major
tier-5-epic
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
residual/.agent#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add Mozilla Public License 2.0 (MPL-2.0) to the standalone config library (
config/).Why MPL-2.0: File-level copyleft. Forks/modifications to the library source must be distributed under MPL-2.0 with source. Projects that merely use the library as a dependency are unaffected — no license change, no source sharing required.
Plan
1. Add LICENSE file
config/LICENSEwith the full MPL-2.0 text2. Add MPL-2.0 header to all .go files (17 files)
Each file gets the standard MPL-2.0 header block:
Files to update:
config/config.goconfig/app.goconfig/stubs.goconfig/core/app.goconfig/core/load.goconfig/core/merge.goconfig/core/write.goconfig/core/env.goconfig/core/codec.goconfig/core/tag.goconfig/core/template.goconfig/load_test.goconfig/merge_test.goconfig/write_test.goconfig/core/tag_test.goconfig/core/merge_test.goconfig/core/env_test.go3. Add license metadata to go.mod
Add license directive to
config/go.mod:4. Verification
Labels
proj-harness— licensing/tooling worktier-1-easy— mechanical header addition, <50 LOC changesRisk
Done
MPL-2.0 license applied to the config library:
config/LICENSE— full MPL-2.0 text.gofiles (3-line comment block)hooks/pre-commitchecks staged.gofiles for the headerhooks/setup.shinstalls the hook into.git/hooks/pre-commitBuild, tests, and vet all pass.