Skip to content

Commit 699c850

Browse files
committed
Fix broken lint-license task
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
1 parent e79def4 commit 699c850

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,17 @@ lint-mod:
168168
&& go mod tidy --diff
169169
$(call footer, $@)
170170

171+
# FIXME: go-licenses cannot find LICENSE from root of repo when submodule is imported:
172+
# https://github.com/google/go-licenses/issues/186
173+
# This is impacting gotest.tools
174+
# FIXME: go-base36 is multi-license (MIT/Apache), using a custom boilerplate file that go-licenses fails to understand
171175
lint-licenses:
172176
$(call title, $@: $(GOOS))
173177
@cd $(MAKEFILE_DIR) \
174-
&& ./hack/make-lint-licenses.sh
178+
&& go-licenses check --include_tests --allowed_licenses=Apache-2.0,BSD-2-Clause,BSD-2-Clause-FreeBSD,BSD-3-Clause,MIT,ISC,Python-2.0,PostgreSQL,X11,Zlib \
179+
--ignore gotest.tools \
180+
--ignore github.com/multiformats/go-base36 \
181+
./...
175182
$(call footer, $@)
176183

177184
lint-licenses-all:

0 commit comments

Comments
 (0)