Skip to content

Commit

Permalink
Remove legacy +build: constraint (go-gitea#19582)
Browse files Browse the repository at this point in the history
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
  • Loading branch information
wxiaoguang authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent 149be39 commit b79c2c4
Show file tree
Hide file tree
Showing 86 changed files with 0 additions and 86 deletions.
1 change: 0 additions & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build vendor
// +build vendor

package main

Expand Down
1 change: 0 additions & 1 deletion build/code-batch-process.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion build/generate-bindata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion build/generate-emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion build/generate-gitignores.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion build/generate-licenses.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion build/gitea-format-imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion build/gocovmerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// merges them into one profile

//go:build ignore
// +build ignore

package main

Expand Down
1 change: 0 additions & 1 deletion cmd/embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package cmd

Expand Down
1 change: 0 additions & 1 deletion cmd/embedded_stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !bindata
// +build !bindata

package cmd

Expand Down
1 change: 0 additions & 1 deletion modules/auth/pam/pam.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build pam
// +build pam

package pam

Expand Down
1 change: 0 additions & 1 deletion modules/auth/pam/pam_stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !pam
// +build !pam

package pam

Expand Down
1 change: 0 additions & 1 deletion modules/auth/pam/pam_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build pam
// +build pam

// Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
Expand Down
1 change: 0 additions & 1 deletion modules/avatar/identicon/identicon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build test_avatar_identicon
// +build test_avatar_identicon

package identicon

Expand Down
1 change: 0 additions & 1 deletion modules/git/blob_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/blob_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/command_race_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build race
// +build race

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/commit_convert_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/commit_info_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/commit_info_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/last_commit_cache_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/last_commit_cache_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/notes_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/notes_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/parse_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/parse_gogit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/parse_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/parse_nogogit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/pipeline/lfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package pipeline

Expand Down
1 change: 0 additions & 1 deletion modules/git/pipeline/lfs_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package pipeline

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_base_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_base_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_blob_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_blob_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_branch_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_branch_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_commit_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_commit_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_commitgraph_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_language_stats_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_language_stats_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_language_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_ref_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_ref_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_tag_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_tag_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_tree_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/repo_tree_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/sha1_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git

Expand Down
1 change: 0 additions & 1 deletion modules/git/sha1_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build !gogit
// +build !gogit

package git

Expand Down
Loading

0 comments on commit b79c2c4

Please sign in to comment.