Skip to content

Commit

Permalink
Switch license to AGPL
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed Dec 8, 2022
1 parent d1072e1 commit 509b523
Show file tree
Hide file tree
Showing 2,397 changed files with 31,866 additions and 32,135 deletions.
17 changes: 2 additions & 15 deletions components/BUILD.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.
# See License.AGPL.txt in the project root for license information.

packages:
- name: all
Expand Down Expand Up @@ -140,23 +140,10 @@ scripts:
deps:
- dev/addlicense:app
script: |
tmpdir=$(mktemp -d)
echo "Temp Dir: $tmpdir"
leeway collect files --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | uniq > $tmpdir/all
leeway collect files --variant oss --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | uniq > $tmpdir/oss
grep -v -f $tmpdir/oss $tmpdir/all > $tmpdir/ee
grep -E "^components\/ee\/" $tmpdir/oss >> $tmpdir/ee
grep -v -E "^chart\/" $tmpdir/oss | grep -v -E "^install\/" > $tmpdir/agpl
grep -v -f $tmpdir/agpl $tmpdir/oss > $tmpdir/mit
# set `export LICENCE_HEADER_CHECK_ONLY=true` to just check if all headers are there (and exit with status code 1 if not)
check=$([ "$LICENCE_HEADER_CHECK_ONLY" = true ] && printf "%s" '-check')
cat $tmpdir/ee | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l gpshf . || exit 1
cat $tmpdir/agpl | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l agpl . || exit 1
cat $tmpdir/mit | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l mit . || exit 1
leeway collect files --format-string '{{ range . }}{{ .Name }}{{"\n"}}{{ end }}' | sort | uniq | while read f; do echo "$PWD/../$f"; done | addlicense $check -s -l agpl . || exit 1
- name: dejson-log-output
script: |-
jq -Rr '. as $line |
Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cmd

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/cmd/run.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cmd

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/debug.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.
# See License.AGPL.txt in the project root for license information.

set -Eeuo pipefail
source /workspace/gitpod/scripts/ws-deploy.sh deployment blobserve
2 changes: 1 addition & 1 deletion components/blobserve/leeway.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.
# See License.AGPL.txt in the project root for license information.

FROM alpine:3.16

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package main

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/pkg/blobserve/blobserve.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package blobserve

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/pkg/blobserve/blobspace.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package blobserve

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/pkg/blobserve/blobspace_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package blobserve

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/pkg/blobserve/refstore.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package blobserve

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/pkg/blobserve/refstore_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package blobserve

Expand Down
2 changes: 1 addition & 1 deletion components/blobserve/pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package config

Expand Down
4 changes: 2 additions & 2 deletions components/common-go/BUILD.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.
# See License.AGPL.txt in the project root for license information.

packages:
- name: lib
type: go
srcs:
- "**"
config:
packaging: library
packaging: library
2 changes: 1 addition & 1 deletion components/common-go/analytics/analytics.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package analytics

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/metrics.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/options.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/options_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/server_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver_test

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/baseserver/testing.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package baseserver

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/cgroup.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/cgroups_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/v1/cpu.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups_v1

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/v1/memory.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups_v1

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/v2/cpu.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups_v2

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/v2/cpu_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups_v2

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/v2/io.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups_v2

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/cgroups/v2/memory.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package cgroups_v2

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/experiments/configcat.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experiments

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/experiments/experimentstest/client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experimentstest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experimentstest

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/experiments/flags.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experiments

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/experiments/noop.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experiments

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/experiments/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experiments

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/experiments/types_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package experiments

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/go-get-kubernetes.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.
# See License.AGPL.txt in the project root for license information.


# based on https://github.com/kubernetes/kubernetes/issues/79384
Expand Down
2 changes: 1 addition & 1 deletion components/common-go/grpc/grpc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package grpc

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/grpc/ratelimit.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package grpc

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/grpc/ratelimit_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package grpc

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package kubernetes

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/kubernetes/probes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package kubernetes

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/log/export.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package log

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/log/handler.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package log

Expand Down
2 changes: 1 addition & 1 deletion components/common-go/log/handler_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// See License.AGPL.txt in the project root for license information.

package log

Expand Down
Loading

0 comments on commit 509b523

Please sign in to comment.