Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
131687: license: code gen uses the CSL instead of BSL r=celiala a=jlinder

Use the CockroachDB Software License (CSL) for the code generation templates that generate code under the BSL license and the resulting generated files.

Part of RE-658

Release note (general change): Change the license cockroach is distributed under to the new CockroachDB Software License (CSL).

131688: license: change pkg/kv file headers w/BSL to use the CSL r=celiala a=jlinder

Change the file headers for files under pkg/kv directory using the BSL license to use the CockroachDB Software License (CSL) instead.

Part of RE-658

Release note (general change): Change the license cockroach is distributed under to the new CockroachDB Software License (CSL).

Co-authored-by: James H. Linder <[email protected]>
  • Loading branch information
craig[bot] and jlinder committed Oct 2, 2024
3 parents 8219484 + ddd0076 + c83c57d commit ec2573d
Show file tree
Hide file tree
Showing 1,013 changed files with 2,026 additions and 7,091 deletions.
9 changes: 2 additions & 7 deletions pkg/acceptance/generated_cli_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions pkg/cmd/generate-acceptance-tests/cli_test_template.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions pkg/cmd/generate-logictest/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,8 @@ const templateText = `
{{- define "bslHeader" -}}
// Copyright 2022 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.
{{- end }}
{{- define "header" }}
Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/admission.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kv

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/admission_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kv

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/batch.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kv

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/buffering_adder.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/bulk_metrics.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/bulkpb/bulk.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulkpb

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/bulkpb/bulkpb.proto
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2022 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.


syntax = "proto3";
Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/bulkpb/ingestion_performance_stats.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2022 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulkpb

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/bulkpb/ingestion_performance_stats_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulkpb

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/kv_buf.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/kv_buf_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/main_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk_test

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/setting.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2022 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/split_sst_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2024 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/sst_batcher.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2017 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/bulk/sst_batcher_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package bulk_test

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/client_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2014 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

/*
Package client_test tests clients against a fully-instantiated
Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/db.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kv

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/db_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kv_test

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/doc.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2014 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

/*
Package kv and its KV API have been deprecated for external usage. Please use
Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/kvbase/constants.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kvbase

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/kvbase/metrics.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2023 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kvbase

Expand Down
9 changes: 2 additions & 7 deletions pkg/kv/kvclient/kvcoord/batch.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
// Use of this software is governed by the CockroachDB Software License
// included in the /LICENSE file.

package kvcoord

Expand Down
Loading

0 comments on commit ec2573d

Please sign in to comment.