Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit cf9a440

Browse files
authored
Merge pull request #175 from mdelapenya/licenses
feat: add licenses and support for generating notice files
2 parents c17e637 + 90aec03 commit cf9a440

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+10265
-17
lines changed

.ci/scripts/build-test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env bash
2+
3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
27
set -euxo pipefail
38
#
49
# Build and test the app using the install and test make goals.

.ci/scripts/functional-test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env bash
2+
3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
27
set -euxo pipefail
38
#
49
# Run the functional tests using the functional-test make goal and parse the

.ci/scripts/get-build-artifacts.sh

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
#!/usr/bin/env bash
2-
# Licensed to Elasticsearch B.V. under one or more contributor
3-
# license agreements. See the NOTICE file distributed with
4-
# this work for additional information regarding copyright
5-
# ownership. Elasticsearch B.V. licenses this file to you under
6-
# the Apache License, Version 2.0 (the "License"); you may
7-
# not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# http:#www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing,
13-
# software distributed under the License is distributed on an
14-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
# KIND, either express or implied. See the License for the
16-
# specific language governing permissions and limitations
17-
# under the License.
2+
3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
187
set -exuo pipefail
198

209
if [ $# -ne 3 ]; then

.ci/scripts/golangci-lint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
22

3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
37
BASEDIR=$(dirname "$0")
48

59
error=0

.ci/scripts/install-dependencies.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env bash
2+
3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
27
set -euxo pipefail
38
#
49
# Install the dependencies using the install and test make goals.

.ci/scripts/install-go.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env bash
2+
3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
27
set -euxo pipefail
38
#
49
# Install the given go version using the gimme script.

.ci/scripts/install-test-dependencies.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env bash
2+
3+
## Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
## or more contributor license agreements. Licensed under the Elastic License;
5+
## you may not use this file except in compliance with the Elastic License.
6+
27
set -euxo pipefail
38
#
49
# Install the dependencies using the install and test make goals.

cli/LICENSE.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+
or more contributor license agreements. Licensed under the Elastic License;
3+
you may not use this file except in compliance with the Elastic License.

cli/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ build:
2222
install:
2323
go get -v -t ./...
2424

25+
.PHONY: notice
26+
notice:
27+
@echo "Generating NOTICE"
28+
go mod tidy
29+
go mod download
30+
go list -m -json all | go run go.elastic.co/go-licence-detector \
31+
-includeIndirect \
32+
-rules ../notice/rules.json \
33+
-overrides ../notice/overrides.json \
34+
-noticeTemplate ../notice/NOTICE.txt.tmpl \
35+
-noticeOut NOTICE.txt \
36+
-depsOut ""
37+
2538
.PHONY: test
2639
test:
2740
go test -v -timeout=$(TEST_TIMEOUT) ./...

cli/NOTICE.txt

Lines changed: 9999 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)