This repository was archived by the owner on Nov 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +6
-63
lines changed Expand file tree Collapse file tree 6 files changed +6
-63
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ RUN --mount=target=. \
108108 make -f builder.Makefile test
109109
110110FROM base AS check-license-headers
111- RUN go get -u github.com/kunalkushwaha/ltag
111+ RUN go install github.com/google/addlicense@latest
112112RUN --mount=target=. \
113113 make -f builder.Makefile check-license-headers
114114
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22
3- # Copyright Docker Compose CLI authors
3+ # Copyright 2020, 2022 Docker Compose CLI authors
44
55# Licensed under the Apache License, Version 2.0 (the "License");
66# you may not use this file except in compliance with the License.
1616
1717set -eu -o pipefail
1818
19- if ! command -v ltag ; then
20- >&2 echo " ERROR: ltag not found. Install with:"
21- >&2 echo " go get -u github.com/kunalkushwaha/ltag "
19+ if ! command -v addlicense ; then
20+ >&2 echo " ERROR: addlicense not found. Install with:"
21+ >&2 echo " go install github.com/google/addlicense@latest "
2222 exit 1
2323fi
2424
25- BASEPATH=" ${1-} "
26-
27- ltag -t " ${BASEPATH} scripts/validate/template" -excludes " validate testdata resolvepath" --check -v
25+ find . -regex ' .*\.sh' -o -regex ' .*\.go' -o -regex ' .*Makefile' -o -regex ' .*Dockerfile' | xargs addlicense -check -l apache -c ' Docker Compose CLI authors' -ignore validate -ignore testdata -ignore resolvepath -v 1>&2
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments