aboutsummaryrefslogtreecommitdiffstats
path: root/modules/packages
diff options
context:
space:
mode:
authorflynnnnnnnnnn <118399147+flynnnnnnnnnn@users.noreply.github.com>2022-11-27 13:20:29 -0500
committerGitHub <noreply@github.com>2022-11-27 18:20:29 +0000
commite81ccc406bf723a5a58d685e7782f281736affd4 (patch)
treebc9812f3f1779f8ce86b8f915d08aafd02e944b9 /modules/packages
parentf6fd501841816f5e5c1c9a30fbc4c9a2a6f987bc (diff)
downloadgitea-e81ccc406bf723a5a58d685e7782f281736affd4.tar.gz
gitea-e81ccc406bf723a5a58d685e7782f281736affd4.zip
Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'modules/packages')
-rw-r--r--modules/packages/composer/metadata.go3
-rw-r--r--modules/packages/composer/metadata_test.go3
-rw-r--r--modules/packages/conan/conanfile_parser.go3
-rw-r--r--modules/packages/conan/conanfile_parser_test.go3
-rw-r--r--modules/packages/conan/conaninfo_parser.go3
-rw-r--r--modules/packages/conan/conaninfo_parser_test.go3
-rw-r--r--modules/packages/conan/metadata.go3
-rw-r--r--modules/packages/conan/reference.go3
-rw-r--r--modules/packages/conan/reference_test.go3
-rw-r--r--modules/packages/container/helm/helm.go3
-rw-r--r--modules/packages/container/metadata.go3
-rw-r--r--modules/packages/container/metadata_test.go3
-rw-r--r--modules/packages/container/oci/digest.go3
-rw-r--r--modules/packages/container/oci/mediatype.go3
-rw-r--r--modules/packages/container/oci/oci.go3
-rw-r--r--modules/packages/container/oci/reference.go3
-rw-r--r--modules/packages/content_store.go3
-rw-r--r--modules/packages/hashed_buffer.go3
-rw-r--r--modules/packages/hashed_buffer_test.go3
-rw-r--r--modules/packages/helm/metadata.go3
-rw-r--r--modules/packages/maven/metadata.go3
-rw-r--r--modules/packages/maven/metadata_test.go3
-rw-r--r--modules/packages/multi_hasher.go3
-rw-r--r--modules/packages/multi_hasher_test.go3
-rw-r--r--modules/packages/npm/creator.go3
-rw-r--r--modules/packages/npm/creator_test.go3
-rw-r--r--modules/packages/npm/metadata.go3
-rw-r--r--modules/packages/nuget/metadata.go3
-rw-r--r--modules/packages/nuget/metadata_test.go3
-rw-r--r--modules/packages/nuget/symbol_extractor.go3
-rw-r--r--modules/packages/nuget/symbol_extractor_test.go3
-rw-r--r--modules/packages/pub/metadata.go3
-rw-r--r--modules/packages/pub/metadata_test.go3
-rw-r--r--modules/packages/pypi/metadata.go3
-rw-r--r--modules/packages/rubygems/marshal.go3
-rw-r--r--modules/packages/rubygems/marshal_test.go3
-rw-r--r--modules/packages/rubygems/metadata.go3
-rw-r--r--modules/packages/rubygems/metadata_test.go3
-rw-r--r--modules/packages/vagrant/metadata.go3
-rw-r--r--modules/packages/vagrant/metadata_test.go3
40 files changed, 40 insertions, 80 deletions
diff --git a/modules/packages/composer/metadata.go b/modules/packages/composer/metadata.go
index 797576b1e7..b98294001c 100644
--- a/modules/packages/composer/metadata.go
+++ b/modules/packages/composer/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/modules/packages/composer/metadata_test.go b/modules/packages/composer/metadata_test.go
index feadc18b6a..a0e1a77a6e 100644
--- a/modules/packages/composer/metadata_test.go
+++ b/modules/packages/composer/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package composer
diff --git a/modules/packages/conan/conanfile_parser.go b/modules/packages/conan/conanfile_parser.go
index 960e813533..c47b242cdc 100644
--- a/modules/packages/conan/conanfile_parser.go
+++ b/modules/packages/conan/conanfile_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conanfile_parser_test.go b/modules/packages/conan/conanfile_parser_test.go
index 0ac9c87b14..5801570184 100644
--- a/modules/packages/conan/conanfile_parser_test.go
+++ b/modules/packages/conan/conanfile_parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conaninfo_parser.go b/modules/packages/conan/conaninfo_parser.go
index bb228e0207..5bb3fb8930 100644
--- a/modules/packages/conan/conaninfo_parser.go
+++ b/modules/packages/conan/conaninfo_parser.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/conaninfo_parser_test.go b/modules/packages/conan/conaninfo_parser_test.go
index 3e28191b06..556a4b939e 100644
--- a/modules/packages/conan/conaninfo_parser_test.go
+++ b/modules/packages/conan/conaninfo_parser_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/metadata.go b/modules/packages/conan/metadata.go
index a7d6a9df0b..256a376cf7 100644
--- a/modules/packages/conan/metadata.go
+++ b/modules/packages/conan/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/reference.go b/modules/packages/conan/reference.go
index 49236981b6..37a5170dd3 100644
--- a/modules/packages/conan/reference.go
+++ b/modules/packages/conan/reference.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/conan/reference_test.go b/modules/packages/conan/reference_test.go
index 98eb2c8478..6ea86eb0dd 100644
--- a/modules/packages/conan/reference_test.go
+++ b/modules/packages/conan/reference_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package conan
diff --git a/modules/packages/container/helm/helm.go b/modules/packages/container/helm/helm.go
index 98d3824a85..6981d430ad 100644
--- a/modules/packages/container/helm/helm.go
+++ b/modules/packages/container/helm/helm.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/modules/packages/container/metadata.go b/modules/packages/container/metadata.go
index fd38e67859..c3946f38f1 100644
--- a/modules/packages/container/metadata.go
+++ b/modules/packages/container/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/packages/container/metadata_test.go b/modules/packages/container/metadata_test.go
index 9400cf6954..f9ee478d63 100644
--- a/modules/packages/container/metadata_test.go
+++ b/modules/packages/container/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package container
diff --git a/modules/packages/container/oci/digest.go b/modules/packages/container/oci/digest.go
index 5234814cfe..dd9cc0095c 100644
--- a/modules/packages/container/oci/digest.go
+++ b/modules/packages/container/oci/digest.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/mediatype.go b/modules/packages/container/oci/mediatype.go
index 2636fbe288..f9c3907e17 100644
--- a/modules/packages/container/oci/mediatype.go
+++ b/modules/packages/container/oci/mediatype.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/oci.go b/modules/packages/container/oci/oci.go
index 01cca8fe69..570d2e92c2 100644
--- a/modules/packages/container/oci/oci.go
+++ b/modules/packages/container/oci/oci.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/container/oci/reference.go b/modules/packages/container/oci/reference.go
index 120ff122d4..7ec399255d 100644
--- a/modules/packages/container/oci/reference.go
+++ b/modules/packages/container/oci/reference.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package oci
diff --git a/modules/packages/content_store.go b/modules/packages/content_store.go
index 13763db986..1181fa4d52 100644
--- a/modules/packages/content_store.go
+++ b/modules/packages/content_store.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/hashed_buffer.go b/modules/packages/hashed_buffer.go
index 3f8cafcfb5..ef00a45057 100644
--- a/modules/packages/hashed_buffer.go
+++ b/modules/packages/hashed_buffer.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/hashed_buffer_test.go b/modules/packages/hashed_buffer_test.go
index e21ec67e1f..529262226f 100644
--- a/modules/packages/hashed_buffer_test.go
+++ b/modules/packages/hashed_buffer_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/helm/metadata.go b/modules/packages/helm/metadata.go
index fb5e51d0c5..98b5919a73 100644
--- a/modules/packages/helm/metadata.go
+++ b/modules/packages/helm/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package helm
diff --git a/modules/packages/maven/metadata.go b/modules/packages/maven/metadata.go
index 6ee9d69687..be057c8c07 100644
--- a/modules/packages/maven/metadata.go
+++ b/modules/packages/maven/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/modules/packages/maven/metadata_test.go b/modules/packages/maven/metadata_test.go
index a17d456560..f4bc84268e 100644
--- a/modules/packages/maven/metadata_test.go
+++ b/modules/packages/maven/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package maven
diff --git a/modules/packages/multi_hasher.go b/modules/packages/multi_hasher.go
index 4d17441d8c..83a4b5b7af 100644
--- a/modules/packages/multi_hasher.go
+++ b/modules/packages/multi_hasher.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/multi_hasher_test.go b/modules/packages/multi_hasher_test.go
index 6c895ce120..42c1ef416f 100644
--- a/modules/packages/multi_hasher_test.go
+++ b/modules/packages/multi_hasher_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package packages
diff --git a/modules/packages/npm/creator.go b/modules/packages/npm/creator.go
index 16cadefb89..02f6724812 100644
--- a/modules/packages/npm/creator.go
+++ b/modules/packages/npm/creator.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/npm/creator_test.go b/modules/packages/npm/creator_test.go
index 2b844f4b0e..9a2b1e10b2 100644
--- a/modules/packages/npm/creator_test.go
+++ b/modules/packages/npm/creator_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/npm/metadata.go b/modules/packages/npm/metadata.go
index 44714cd6ea..aafbdf779c 100644
--- a/modules/packages/npm/metadata.go
+++ b/modules/packages/npm/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package npm
diff --git a/modules/packages/nuget/metadata.go b/modules/packages/nuget/metadata.go
index 2b555e47e9..dc72d0982a 100644
--- a/modules/packages/nuget/metadata.go
+++ b/modules/packages/nuget/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/metadata_test.go b/modules/packages/nuget/metadata_test.go
index e8c7773e97..74c3e7dfaa 100644
--- a/modules/packages/nuget/metadata_test.go
+++ b/modules/packages/nuget/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/symbol_extractor.go b/modules/packages/nuget/symbol_extractor.go
index 9c04d7bfb4..634bbb17e6 100644
--- a/modules/packages/nuget/symbol_extractor.go
+++ b/modules/packages/nuget/symbol_extractor.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/nuget/symbol_extractor_test.go b/modules/packages/nuget/symbol_extractor_test.go
index 892d718caa..fa1b80ee82 100644
--- a/modules/packages/nuget/symbol_extractor_test.go
+++ b/modules/packages/nuget/symbol_extractor_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package nuget
diff --git a/modules/packages/pub/metadata.go b/modules/packages/pub/metadata.go
index f3e9bf20bc..36fe665707 100644
--- a/modules/packages/pub/metadata.go
+++ b/modules/packages/pub/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/modules/packages/pub/metadata_test.go b/modules/packages/pub/metadata_test.go
index e43ed64fc6..4c0c3f0ec6 100644
--- a/modules/packages/pub/metadata_test.go
+++ b/modules/packages/pub/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pub
diff --git a/modules/packages/pypi/metadata.go b/modules/packages/pypi/metadata.go
index df367d10e2..125728c4f1 100644
--- a/modules/packages/pypi/metadata.go
+++ b/modules/packages/pypi/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package pypi
diff --git a/modules/packages/rubygems/marshal.go b/modules/packages/rubygems/marshal.go
index 2c45042fa8..14fb755606 100644
--- a/modules/packages/rubygems/marshal.go
+++ b/modules/packages/rubygems/marshal.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/marshal_test.go b/modules/packages/rubygems/marshal_test.go
index e5963ebcd6..501757bfed 100644
--- a/modules/packages/rubygems/marshal_test.go
+++ b/modules/packages/rubygems/marshal_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/metadata.go b/modules/packages/rubygems/metadata.go
index f1fc399918..e2c73c8f3a 100644
--- a/modules/packages/rubygems/metadata.go
+++ b/modules/packages/rubygems/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/rubygems/metadata_test.go b/modules/packages/rubygems/metadata_test.go
index dbefa9c236..ec2fa08b6b 100644
--- a/modules/packages/rubygems/metadata_test.go
+++ b/modules/packages/rubygems/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2021 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package rubygems
diff --git a/modules/packages/vagrant/metadata.go b/modules/packages/vagrant/metadata.go
index f52989b2e2..6789533339 100644
--- a/modules/packages/vagrant/metadata.go
+++ b/modules/packages/vagrant/metadata.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant
diff --git a/modules/packages/vagrant/metadata_test.go b/modules/packages/vagrant/metadata_test.go
index 9720c945ae..d616ffe3d3 100644
--- a/modules/packages/vagrant/metadata_test.go
+++ b/modules/packages/vagrant/metadata_test.go
@@ -1,6 +1,5 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package vagrant