Skip to content

Commit

Permalink
Create an acknowledgement bundle on release for third party licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Jun 7, 2023
1 parent 0e05f35 commit 49617d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
before:
hooks:
- go mod download
- go-licenses save . --save_path=licenses --force
- go install github.com/google/go-licenses@latest
- go-licenses save . --save_path=./acknowledgements --force --ignore github.com/package-url/packageurl-go
- tar -cvf ./acknowledgements.tar.gz -C ./acknowledgements .
- rm -rf ./acknowledgements

builds:
- main: ./main.go
Expand Down Expand Up @@ -39,6 +42,10 @@ archives:
checksum:
name_template: 'checksums.txt'

release:
extra_files:
- glob: ./acknowledgements.tar.gz

changelog:
use: github
groups:
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ limitations under the License.

### Third party software ###
We use third-party libraries, whose license information is included
in the repository folder 'licenses'.
the acknowledgements.tar.gz file as part of each release..

0 comments on commit 49617d0

Please sign in to comment.