Skip to content

Commit 81512d1

Browse files
committed
chore(license): stamp the verbatim Apache 2.0 notice with golic v1.2.0
golic v1.2.0 renders apache2 as the notice from the Apache License appendix, with no title line. golic replace -t apache2 -c "The CryptOS Authors." swaps the old header in place, so the local apache2-cncf licence is no longer needed and is removed from .golic.yaml. The Taskfile pins golic v1.2.0, and license and license:fix pass --license-file, so task license (and CI) also checks that LICENSE is the verbatim Apache 2.0 text. The GoLic workflow comment and step name keep saying Apache 2.0 rather than MIT; the revert of the interim re-stamp had taken that fix out with it. Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
1 parent c34521f commit 81512d1

325 files changed

Lines changed: 330 additions & 994 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/job-golic.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: GoLic
2-
# Verify every source file carries the MIT license header. golic (Bugs5382's own
2+
# Verify every source file carries the Apache 2.0 license header. golic (Bugs5382's own
33
# tool) is run through go-task (`task license`) -- the standard runner for every
44
# project. `golic inject --dry -x` fails the check if a header is missing; it never
55
# modifies files. Docs (**.md) are skipped -- they carry no header.
@@ -42,7 +42,7 @@ jobs:
4242
# PR. Pinning skips the broken lookup entirely; bump deliberately.
4343
version: 3.51.1
4444
repo-token: ${{ secrets.GITHUB_TOKEN }}
45-
- name: Verify MIT headers
45+
- name: Verify license headers
4646
run: |
4747
export PATH="${PATH}:$(go env GOPATH)/bin"
4848
task license

‎.golic.yaml‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
golic:
2-
# golic's apache2 header with the CNCF copyright line (cncf/foundation
3-
# copyright-notices.md): no year and no single holder, so this template
4-
# ignores `-c`.
5-
licenses:
6-
apache2-cncf: |
7-
Apache License 2.0
8-
9-
Copyright The CryptOS Authors.
10-
11-
Licensed under the Apache License, Version 2.0 (the "License");
12-
you may not use this file except in compliance with the License.
13-
You may obtain a copy of the License at
14-
15-
http://www.apache.org/licenses/LICENSE-2.0
16-
17-
Unless required by applicable law or agreed to in writing, software
18-
distributed under the License is distributed on an "AS IS" BASIS,
19-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20-
See the License for the specific language governing permissions and
21-
limitations under the License.
222
# Use the master config's built-in .go rule (block comment placed
233
# after the `package *` line, idiomatic Go). No local overrides.
244
rules: {}

‎Taskfile.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ tasks:
4747
- go mod tidy
4848

4949
license:
50-
desc: Verify every source file carries the Apache 2.0 license header (CI; never writes).
50+
desc: Verify every source file carries the Apache 2.0 license header and LICENSE is the verbatim Apache 2.0 text (CI; never writes).
5151
cmds:
52-
- go install github.com/Bugs5382/golic/cmd/golic@v0.2.0
53-
- golic inject -t apache2 -c "2026 Shane" --dry -x
52+
- go install github.com/Bugs5382/golic/cmd/golic@v1.2.0
53+
- golic inject -t apache2 -c "The CryptOS Authors." --license-file --dry -x
5454
license:fix:
55-
desc: Inject the Apache 2.0 header into any source file missing it.
55+
desc: Inject the Apache 2.0 header into any source file missing it and rewrite LICENSE to the verbatim Apache 2.0 text.
5656
cmds:
57-
- go install github.com/Bugs5382/golic/cmd/golic@v0.2.0
58-
- golic inject -t apache2 -c "2026 Shane"
57+
- go install github.com/Bugs5382/golic/cmd/golic@v1.2.0
58+
- golic inject -t apache2 -c "The CryptOS Authors." --license-file
5959

6060
ci:
6161
desc: Full local validation chain (fmt + lint + vet + test + build)

‎cmd/cryptos-console/loop.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package main
22

33
/*
4-
Apache License 2.0
5-
6-
Copyright 2026 Shane
4+
Copyright The CryptOS Authors.
75
86
Licensed under the Apache License, Version 2.0 (the "License");
97
you may not use this file except in compliance with the License.

‎cmd/cryptos-console/loop_test.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package main
22

33
/*
4-
Apache License 2.0
5-
6-
Copyright 2026 Shane
4+
Copyright The CryptOS Authors.
75
86
Licensed under the Apache License, Version 2.0 (the "License");
97
you may not use this file except in compliance with the License.

‎cmd/cryptos-console/main.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
package main
77

88
/*
9-
Apache License 2.0
10-
11-
Copyright 2026 Shane
9+
Copyright The CryptOS Authors.
1210
1311
Licensed under the Apache License, Version 2.0 (the "License");
1412
you may not use this file except in compliance with the License.

‎cmd/cryptos-console/rawmode_linux.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
package main
44

55
/*
6-
Apache License 2.0
7-
8-
Copyright 2026 Shane
6+
Copyright The CryptOS Authors.
97
108
Licensed under the Apache License, Version 2.0 (the "License");
119
you may not use this file except in compliance with the License.

‎cmd/cryptos-console/rawmode_other.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
package main
44

55
/*
6-
Apache License 2.0
7-
8-
Copyright 2026 Shane
6+
Copyright The CryptOS Authors.
97
108
Licensed under the Apache License, Version 2.0 (the "License");
119
you may not use this file except in compliance with the License.

‎cmd/cryptos-console/reset.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package main
22

33
/*
4-
Apache License 2.0
5-
6-
Copyright 2026 Shane
4+
Copyright The CryptOS Authors.
75
86
Licensed under the Apache License, Version 2.0 (the "License");
97
you may not use this file except in compliance with the License.

‎cmd/cryptos-console/reset_test.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package main
22

33
/*
4-
Apache License 2.0
5-
6-
Copyright 2026 Shane
4+
Copyright The CryptOS Authors.
75
86
Licensed under the Apache License, Version 2.0 (the "License");
97
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)