Skip to content

Commit

Permalink
Moved the SPECS/LICENSES-AND-NOTICES folder. (#8618)
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelWMS authored Mar 29, 2024
1 parent f3ba55a commit 94c1c31
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*.spec linguist-detectable linguist-language=RPM-Spec
toolkit/docs/** linguist-documentation
LICENSES-AND-NOTICES/** linguist-documentation
SPECS/LICENSES-AND-NOTICES/** linguist-documentation
SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md linguist-generated
LICENSES-AND-NOTICES/SPECS/** linguist-documentation
LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md linguist-generated
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feel free to delete sections of the template which do not apply to your PR, or a
- [ ] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
- [ ] All package sources are available
- [ ] cgmanifest files are up-to-date and sorted (`./cgmanifest.json`, `./toolkit/scripts/toolchain/cgmanifest.json`, `.github/workflows/cgmanifest.json`)
- [ ] LICENSE-MAP files are up-to-date (`./SPECS/LICENSES-AND-NOTICES/data/licenses.json`, `./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md`, `./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON`)
- [ ] LICENSE-MAP files are up-to-date (`./LICENSES-AND-NOTICES/SPECS/data/licenses.json`, `./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md`, `./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON`)
- [ ] All source files have up-to-date hashes in the `*.signatures.json` files
- [ ] `sudo make go-tidy-all` and `sudo make go-test-coverage` pass
- [ ] Documentation has been updated to match any changes to the build system
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-license-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- name: Run license map checking script
run: |
python3 ./toolkit/scripts/license_map.py \
./SPECS/LICENSES-AND-NOTICES/data/licenses.json \
./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md \
./LICENSES-AND-NOTICES/SPECS/data/licenses.json \
./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md \
./SPECS \
./SPECS-EXTENDED \
./SPECS-SIGNED
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ When creating your PR, please ensure the following:
```

* LICENSE-MAP files are up-to-date. These files indicate which licenses are being used by Azure Linux's packages and where the package may be derived from. The license files include the following files:
* ./SPECS/LICENSES-AND-NOTICES/data/licenses.json
* ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md
* ./LICENSES-AND-NOTICES/SPECS/data/licenses.json
* ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

This can be checked by running

```bash
python3 ./toolkit/scripts/license_map.py \
./SPECS/LICENSES-AND-NOTICES/data/licenses.json \
./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md \
./LICENSES-AND-NOTICES/SPECS/data/licenses.json \
./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md \
./SPECS \
./SPECS-EXTENDED \
./SPECS-SIGNED
Expand Down
11 changes: 6 additions & 5 deletions LICENSES-AND-NOTICES/LICENSES-MAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

| Folder | Governing License(s) | Description |
|---------------|---------------------------|-------------------------------------|
|/ | MIT | Except where noted otherwise, all source contained within this repository is governed by the [MIT License](LICENSE.md) |
|/SPECS | Apache 2.0, MIT, et al | Refer to [LICENSE-MAP](/SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md) |
|/SPECS-SIGNED | Apache 2.0, MIT, et al | Refer to [LICENSE-MAP](/SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md) |
| Folder | Governing License(s) | Description |
|-----------------|---------------------------|-------------------------------------|
|/ | MIT | Except where noted otherwise, all source contained within this repository is governed by the [MIT License](LICENSE.md) |
|/SPECS | Apache 2.0, MIT, et al | Refer to [LICENSE-MAP](/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md) |
|/SPECS-EXTENDED | Apache 2.0, MIT, et al | Refer to [LICENSE-MAP](/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md) |
|/SPECS-SIGNED | Apache 2.0, MIT, et al | Refer to [LICENSE-MAP](/LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md) |
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ create_new_file_from_template "$SCRIPT_FOLDER/template_livepatch-signed.spec" "$
echo "Updating licensing info."

license_map.py --no_check --update \
SPECS/LICENSES-AND-NOTICES/data/licenses.json \
SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md \
LICENSES-AND-NOTICES/SPECS/data/licenses.json \
LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md \
"$LIVEPATCH_SIGNED_SPEC_PATH"
4 changes: 2 additions & 2 deletions toolkit/scripts/livepatching/generate_livepatch_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ generate_livepatch_spec
echo "Updating licensing info."

license_map.py --no_check --update \
SPECS/LICENSES-AND-NOTICES/data/licenses.json \
SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md \
LICENSES-AND-NOTICES/SPECS/data/licenses.json \
LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md \
"$LIVEPATCH_SPEC_PATH"

echo "Updating the cgmanifest.json."
Expand Down

0 comments on commit 94c1c31

Please sign in to comment.