Add go-licenses to recipe
@@ -21,10 +21,13 @@ build:
- pushd {{ pkg_src }}
- go build -v -o $GOBIN/{{ name }} -ldflags "-X github.com/homeport/dyff/internal/cmd.version={{ version }}" ./cmd/dyff # [unix]
- go build -v -o %GOBIN%\{{ name }}.exe -ldflags "-X github.com/homeport/dyff/internal/cmd.version={{ version }}" .\cmd\dyff # [win]
+ - go-licenses save ./cmd/dyff --save_path=./license-files # [unix]
+ - go-licenses save .\cmd\dyff --save_path=.\license-files # [win]
requirements:
build:
- {{ compiler('go') }} >=1.12
+ - go-licenses
test:
commands:
@@ -34,7 +37,9 @@ about:
home: https://github.com/homeport/dyff
license: MIT
license_family: MIT
- license_file: src/github.com/homeport/dyff/LICENSE
+ license_file:
+ - src/github.com/homeport/dyff/LICENSE
+ - src/github.com/homeport/dyff/license-files/
summary: A diff tool for YAML files, and sometimes JSON
doc_url: https://github.com/homeport/dyff/blob/{{ version }}/README.md
dev_url: https://github.com/homeport/dyff
