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 d6068f8
Show file tree
Hide file tree
Showing 340 changed files with 942 additions and 668 deletions.
15 changes: 1 addition & 14 deletions components/BUILD.yaml
Original file line number Diff line number Diff line change
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
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/config-schema.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/root.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/run.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/signature-elfdump.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/signature-matches.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/signature-new.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/signature.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package cmd

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/testbed/main.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package main

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/cmd/testtarget/main.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package main

Expand Down
8 changes: 5 additions & 3 deletions components/ee/agent-smith/leeway.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the Gitpod Enterprise Source Code License,
# See License.enterprise.txt in the project root folder.
# 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.



FROM alpine:3.16

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/main.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

//go:build !sentinel
// +build !sentinel
Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/agent/actions.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package agent

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/agent/agent.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package agent

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/agent/agent_test.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package agent

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/agent/metrics.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package agent

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/classifier/classifier.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package classifier

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/classifier/classifier_test.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package classifier_test

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/classifier/signature_test.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package classifier

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/classifier/sinature.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

//go:build linux
// +build linux
Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/common/common.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package common

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package config

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/detector/discovery.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package detector

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/detector/proc.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package detector

Expand Down
6 changes: 3 additions & 3 deletions components/ee/agent-smith/pkg/detector/proc_test.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 Gitpod Enterprise Source Code License,
// See License.enterprise.txt in the project root folder.
// 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.

package detector

Expand Down
10 changes: 6 additions & 4 deletions components/ee/db-sync/leeway.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
# Licensed under the Gitpod Enterprise Source Code License,
# See License.enterprise.txt in the project root folder.
# 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.



FROM node:16.13.0-slim as builder
COPY components-ee-db-sync--app /installer/
Expand All @@ -22,4 +24,4 @@ ARG VERSION

ENV GITPOD_BUILD_GIT_COMMIT=${__GIT_COMMIT}
ENV GITPOD_BUILD_VERSION=${VERSION}
CMD [ "run", "--soft-start" ]
CMD [ "run", "--soft-start" ]
8 changes: 5 additions & 3 deletions components/ee/db-sync/src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the Gitpod Enterprise Source Code License,
* See License.enterprise.txt in the project root folder.
* 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.
*/



import { ArgumentParser } from "argparse";
import { TableUpdateProvider } from "./export";
import { writeFile, readFileSync } from "fs";
Expand Down
8 changes: 5 additions & 3 deletions components/ee/db-sync/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the Gitpod Enterprise Source Code License,
* See License.enterprise.txt in the project root folder.
* 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.
*/



import { ConnectionConfig } from "mysql";

export type NamedConnectionConfig = ConnectionConfig & { name?: string };
Expand Down
8 changes: 5 additions & 3 deletions components/ee/db-sync/src/container-module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the Gitpod Enterprise Source Code License,
* See License.enterprise.txt in the project root folder.
* 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.
*/



import { ContainerModule } from 'inversify';
import { ICommand, RunCommand, ExportCommand } from './commands';
import { TableDescriptionProvider, GitpodTableDescriptionProvider, GitpodSessionTableDescriptionProvider } from '@gitpod/gitpod-db/lib/tables';
Expand Down
9 changes: 5 additions & 4 deletions components/ee/db-sync/src/database.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the Gitpod Enterprise Source Code License,
* See License.enterprise.txt in the project root folder.
* 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.
*/



import { createConnection, Connection, QueryOptions } from "mysql";
import { NamedConnectionConfig } from "./config";

Expand Down Expand Up @@ -45,4 +47,3 @@ export async function query(conn: Connection, sql: string, args?: Omit<QueryOpti
});
});
}

8 changes: 5 additions & 3 deletions components/ee/db-sync/src/export.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the Gitpod Enterprise Source Code License,
* See License.enterprise.txt in the project root folder.
* 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.
*/



import { TableDescription, TableDescriptionProvider } from "@gitpod/gitpod-db/lib/tables";
import { Connection, escape } from "mysql";
import { Transform } from "stream";
Expand Down
10 changes: 5 additions & 5 deletions components/ee/db-sync/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the Gitpod Enterprise Source Code License,
* See License.enterprise.txt in the project root folder.
* 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.
*/



require("reflect-metadata")

import { ArgumentParser } from "argparse";
Expand Down Expand Up @@ -63,5 +65,3 @@ if(cmd) {
} else {
console.error("Unknown command: ", args.cmd);
}


Loading

0 comments on commit d6068f8

Please sign in to comment.