Skip to content

Commit

Permalink
chore: move license generation to release phase (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored Feb 5, 2025
1 parent 32bf3bd commit b70a465
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 64 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,26 @@ jobs:
runner: [ ubuntu, windows ]
fail-fast: true
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
submodules: true
- name: Check License
if: matrix.runner == 'ubuntu'
uses: apache/skywalking-eyes@9bd5feb86b5817aa6072b008f9866a2c3bbc8587
uses: apache/skywalking-eyes/header@69f34abb75ec4e414b593ac3f34228b60e33f97b
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check Dependencies License
if: matrix.runner == 'ubuntu'
uses: apache/skywalking-eyes/dependency@69f34abb75ec4e414b593ac3f34228b60e33f97b
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
flags: -w
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Get dependencies
run: make deps
- name: Lint
Expand Down
59 changes: 1 addition & 58 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,61 +43,4 @@ header:
dependency:
files:
- go.mod
licenses:
- name: github.com/ajstarks/svgo
version: v0.0.0-20180226025133-644b8db467af
license: CC-BY-3.0
- name: github.com/bugsnag/osext
version: v0.0.0-20130617224835-0dd3f918b21b
license: Zlib
- name: github.com/dnaeon/go-vcr
version: v1.0.1
license: BSD-2-Clause
- name: github.com/globalsign/mgo
version: v0.0.0-20181015135952-eeefdecb41b8
license: BSD-2-Clause
- name: github.com/glycerine/go-unsnap-stream
version: v0.0.0-20180323001048-9f0cb55181dd
license: MIT
- name: github.com/golang/freetype
version: v0.0.0-20170609003504-e2365dfdc4a0
license: BSD-3-Clause-And-GPL-2
- name: github.com/magiconair/properties
version: v1.8.1
license: BSD-2-Clause
- name: github.com/mitchellh/osext
version: v0.0.0-20151018003038-5e2d6d41470f
license: Zlib
- name: github.com/pascaldekloe/goe
version: v0.0.0-20180627143212-57f6aae5913c
license: CC0-1.0
- name: github.com/seccomp/libseccomp-golang
version: v0.9.1
license: BSD-2-Clause
- name: github.com/shirou/gopsutil
version: v3.21.11+incompatible
license: BSD-3-Clause
- name: gonum.org/v1/plot
version: v0.0.0-20190515093506-e2840ee46a6b
license: BSD-3-Clause
- name: gopkg.in/check.v1
version: v1.0.0-20200902074654-038fdea0a05b
license: BSD-2-Clause
- name: gopkg.in/gcfg.v1
version: v1.2.3
license: BSD-3-Clause
- name: gopkg.in/inf.v0
version: v0.9.1
license: BSD-3-Clause
- name: gopkg.in/tomb.v1
version: v1.0.0-20141024135613-dd632973f1e7
license: BSD-3-Clause
- name: github.com/chzyer/logex
version: v1.1.10
license: MIT
- name: github.com/hashicorp/cronexpr
version: v1.1.1
license: Apache-2.0 and GPL-3.0
- name: github.com/kr/logfmt
version: v0.0.0-20140226030751-b84e30acd515
license: MIT
licenses: []
7 changes: 6 additions & 1 deletion docs/en/guides/contribution/How-to-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ This documentation guides the release manager to release the SkyWalking Satellit

1. Close(if finished, or move to next milestone otherwise) all issues in the current milestone from [skywalking-satellite](https://github.com/apache/skywalking-satellite/milestones) and [skywalking](https://github.com/apache/skywalking/milestones), create a new milestone if needed.
2. Update [CHANGES.md](../../../../CHANGES.md).

3. Generate LICENSE file in [`dist/LICENSE`](../../../../dist/LICENSE) and copy dependencies' licneses to [`dist/licenses`](../../../../dist/licenses/) folder, this can be done by running the following command in the project root:
```shell
# Install license-eye
go install github.com/apache/skywalking-eyes/cmd/license-eye@69f34abb75ec4e414b593ac3f34228b60e33f97b
license-eye dep resolve --summary dist/LICENSE.tpl -o dist/licenses
```

## Add your GPG public key to Apache svn

Expand Down

0 comments on commit b70a465

Please sign in to comment.