File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ RUN --mount=target=. \
90
90
make -f builder.Makefile test
91
91
92
92
FROM base AS check-license-headers
93
- RUN go install github.com/kunalkushwaha/ltag @latest
93
+ RUN go install github.com/google/addlicense @latest
94
94
RUN --mount=target=. \
95
95
make -f builder.Makefile check-license-headers
96
96
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
3
- # Copyright Docker Compose CLI authors
3
+ # Copyright 2020,2022 Docker Compose CLI authors
4
4
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
16
16
17
17
set -eu -o pipefail
18
18
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 -u github.com/google/addlicense@latest "
22
22
exit 1
23
23
fi
24
24
25
25
BASEPATH=" ${1-} "
26
26
27
- ltag -t " ${BASEPATH} scripts/validate/template " -excludes " validate testdata resolvepath " -- check -v
27
+ 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
You can’t perform that action at this time.
0 commit comments