Skip to content

Commit

Permalink
install license detector
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit committed Jul 5, 2024
1 parent dd0ea66 commit f80b314
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/templates/NOTICE.MD.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{- define "depInfo" -}}
{{- range $i, $dep := . }}
{{ "-" | line }}
Module : {{ $dep.Name }}
Version : {{ $dep.Version }}
Time : {{ $dep.VersionTime }}
Licence : {{ $dep.LicenceType }}

{{ $dep | licenceText }}
{{ end }}
{{- end -}}

Copyright 2022-{{ currentYear }} Quesma

This product includes software developed by The Apache Software
Foundation (http://www.apache.org/).

{{ "=" | line }}
Third party libraries used by the quesma project
{{ "=" | line }}

{{ template "depInfo" .Direct }}

{{ if .Indirect }}
{{ "=" | line }}
Indirect dependencies

{{ template "depInfo" .Indirect }}
{{ end }}
4 changes: 4 additions & 0 deletions .github/workflows/generate-notice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
cache-dependency-path: ${{ matrix.module }}/go.sum
go-version: '1.22'

- name: Install go-licence-detector
run: go get go.elastic.co/go-licence-detector


- name: Print Dependencies
working-directory: ${{ matrix.module }}
run: |
Expand Down

0 comments on commit f80b314

Please sign in to comment.