Skip to content

Commit c18d8d6

Browse files
authored
Remove legacy +build: constraint (go-gitea#19582)
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
1 parent e2a3f3d commit c18d8d6

File tree

86 files changed

+0
-86
lines changed

Some content is hidden

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

86 files changed

+0
-86
lines changed

build.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build vendor
6-
// +build vendor
76

87
package main
98

build/code-batch-process.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
package main
98

build/generate-bindata.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
package main
98

build/generate-emoji.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build ignore
7-
// +build ignore
87

98
package main
109

build/generate-gitignores.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build ignore
2-
// +build ignore
32

43
package main
54

build/generate-licenses.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build ignore
2-
// +build ignore
32

43
package main
54

build/gitea-format-imports.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build ignore
6-
// +build ignore
76

87
package main
98

build/gocovmerge.go

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// merges them into one profile
88

99
//go:build ignore
10-
// +build ignore
1110

1211
package main
1312

cmd/embedded.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build bindata
6-
// +build bindata
76

87
package cmd
98

cmd/embedded_stub.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !bindata
6-
// +build !bindata
76

87
package cmd
98

modules/auth/pam/pam.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build pam
6-
// +build pam
76

87
package pam
98

modules/auth/pam/pam_stub.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !pam
6-
// +build !pam
76

87
package pam
98

modules/auth/pam/pam_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//go:build pam
2-
// +build pam
32

43
// Copyright 2021 The Gitea Authors. All rights reserved.
54
// Use of this source code is governed by a MIT-style

modules/avatar/identicon/identicon_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build test_avatar_identicon
6-
// +build test_avatar_identicon
76

87
package identicon
98

modules/git/blob_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/blob_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/command_race_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build race
6-
// +build race
76

87
package git
98

modules/git/commit_convert_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/commit_info_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/commit_info_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/last_commit_cache_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/last_commit_cache_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/notes_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/notes_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/parse_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/parse_gogit_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/parse_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/parse_nogogit_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/pipeline/lfs.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package pipeline
98

modules/git/pipeline/lfs_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package pipeline
98

modules/git/repo_base_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/repo_base_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build !gogit
7-
// +build !gogit
87

98
package git
109

modules/git/repo_blob_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/repo_blob_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/repo_branch_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/repo_branch_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build !gogit
7-
// +build !gogit
87

98
package git
109

modules/git/repo_commit_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/repo_commit_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/repo_commitgraph_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/repo_language_stats_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/repo_language_stats_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/repo_language_stats_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/repo_ref_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build gogit
6-
// +build gogit
76

87
package git
98

modules/git/repo_ref_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/repo_tag_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/repo_tag_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build !gogit
7-
// +build !gogit
87

98
package git
109

modules/git/repo_tree_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/repo_tree_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
//go:build !gogit
6-
// +build !gogit
76

87
package git
98

modules/git/sha1_gogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build gogit
7-
// +build gogit
87

98
package git
109

modules/git/sha1_nogogit.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// license that can be found in the LICENSE file.
55

66
//go:build !gogit
7-
// +build !gogit
87

98
package git
109

0 commit comments

Comments
 (0)