Skip to content

Commit

Permalink
fix license check
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <[email protected]>
  • Loading branch information
pendo324 committed Oct 18, 2024
1 parent c2d1b19 commit 643c691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ jobs:
- name: Build
run: |
RELEASE_VERSION="${{ needs.get-tag-name.outputs.version }}"
make download-licenses
# static amd64
export STATIC_AMD64_BINARY_NAME="finch-${RELEASE_VERSION}-linux-amd64-static.tar.gz"
GOARCH=amd64 STATIC=1 make
GOARCH=amd64 STATIC=1 make release
pushd _output/
touch "${STATIC_AMD64_BINARY_NAME}"
tar --exclude "*.tar.gz" --exclude "*.tar.gz.sha256sum" -cvzf "${STATIC_AMD64_BINARY_NAME}" .
Expand All @@ -63,7 +62,7 @@ jobs:
rm -rf ./_output/bin/
# static arm64
export STATIC_ARM64_BINARY_NAME="finch-${RELEASE_VERSION}-linux-arm64-static.tar.gz"
GOARCH=arm64 STATIC=1 make
GOARCH=arm64 STATIC=1 make release
pushd _output/
touch "${STATIC_ARM64_BINARY_NAME}"
tar --exclude "*.tar.gz" --exclude "*.tar.gz.sha256sum" -cvzf "${STATIC_ARM64_BINARY_NAME}" .
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ coverage:
download-licenses: GOBIN = $(CURDIR)/tools_bin
download-licenses:
GOBIN=$(GOBIN) go install github.com/google/go-licenses
$(GOBIN)/go-licenses save ./... --save_path="$(LICENSEDIR)" --force --include_tests
$(GOBIN)/go-licenses save ./... --ignore github.com/multiformats/go-base36 --save_path="$(LICENSEDIR)" --force --include_tests

### dependencies in tools.go - start ###

Expand Down Expand Up @@ -249,7 +249,7 @@ check-licenses: GOBIN = $(CURDIR)/tools_bin
check-licenses:
go mod download
GOBIN=$(GOBIN) go install github.com/google/go-licenses
$(GOBIN)/go-licenses check --ignore golang.org/x,github.com/runfinch/finch --ignore github.com/multiformats/go-base36 --allowed_licenses Apache-2.0,BSD-2-Clause,BSD-3-Clause,ISC,MIT --include_tests ./...
$(GOBIN)/go-licenses check --ignore golang.org/x,github.com/runfinch/finch --ignore github.com/multiformats/go-base36 --allowed_licenses Apache-2.0,BSD-2-Clause,BSD-3-Clause,ISC,MIT --include_tests ./...

.PHONY: test-unit
test-unit:
Expand Down

0 comments on commit 643c691

Please sign in to comment.