Browse Source

Remove legacy `+build:` constraint (#19582)

Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
tags/v1.18.0-dev
wxiaoguang 2 years ago
parent
commit
c18d8d6968
No account linked to committer's email address
86 changed files with 0 additions and 86 deletions
  1. 0
    1
      build.go
  2. 0
    1
      build/code-batch-process.go
  3. 0
    1
      build/generate-bindata.go
  4. 0
    1
      build/generate-emoji.go
  5. 0
    1
      build/generate-gitignores.go
  6. 0
    1
      build/generate-licenses.go
  7. 0
    1
      build/gitea-format-imports.go
  8. 0
    1
      build/gocovmerge.go
  9. 0
    1
      cmd/embedded.go
  10. 0
    1
      cmd/embedded_stub.go
  11. 0
    1
      modules/auth/pam/pam.go
  12. 0
    1
      modules/auth/pam/pam_stub.go
  13. 0
    1
      modules/auth/pam/pam_test.go
  14. 0
    1
      modules/avatar/identicon/identicon_test.go
  15. 0
    1
      modules/git/blob_gogit.go
  16. 0
    1
      modules/git/blob_nogogit.go
  17. 0
    1
      modules/git/command_race_test.go
  18. 0
    1
      modules/git/commit_convert_gogit.go
  19. 0
    1
      modules/git/commit_info_gogit.go
  20. 0
    1
      modules/git/commit_info_nogogit.go
  21. 0
    1
      modules/git/last_commit_cache_gogit.go
  22. 0
    1
      modules/git/last_commit_cache_nogogit.go
  23. 0
    1
      modules/git/notes_gogit.go
  24. 0
    1
      modules/git/notes_nogogit.go
  25. 0
    1
      modules/git/parse_gogit.go
  26. 0
    1
      modules/git/parse_gogit_test.go
  27. 0
    1
      modules/git/parse_nogogit.go
  28. 0
    1
      modules/git/parse_nogogit_test.go
  29. 0
    1
      modules/git/pipeline/lfs.go
  30. 0
    1
      modules/git/pipeline/lfs_nogogit.go
  31. 0
    1
      modules/git/repo_base_gogit.go
  32. 0
    1
      modules/git/repo_base_nogogit.go
  33. 0
    1
      modules/git/repo_blob_gogit.go
  34. 0
    1
      modules/git/repo_blob_nogogit.go
  35. 0
    1
      modules/git/repo_branch_gogit.go
  36. 0
    1
      modules/git/repo_branch_nogogit.go
  37. 0
    1
      modules/git/repo_commit_gogit.go
  38. 0
    1
      modules/git/repo_commit_nogogit.go
  39. 0
    1
      modules/git/repo_commitgraph_gogit.go
  40. 0
    1
      modules/git/repo_language_stats_gogit.go
  41. 0
    1
      modules/git/repo_language_stats_nogogit.go
  42. 0
    1
      modules/git/repo_language_stats_test.go
  43. 0
    1
      modules/git/repo_ref_gogit.go
  44. 0
    1
      modules/git/repo_ref_nogogit.go
  45. 0
    1
      modules/git/repo_tag_gogit.go
  46. 0
    1
      modules/git/repo_tag_nogogit.go
  47. 0
    1
      modules/git/repo_tree_gogit.go
  48. 0
    1
      modules/git/repo_tree_nogogit.go
  49. 0
    1
      modules/git/sha1_gogit.go
  50. 0
    1
      modules/git/sha1_nogogit.go
  51. 0
    1
      modules/git/signature_gogit.go
  52. 0
    1
      modules/git/signature_nogogit.go
  53. 0
    1
      modules/git/tree_blob_gogit.go
  54. 0
    1
      modules/git/tree_blob_nogogit.go
  55. 0
    1
      modules/git/tree_entry_gogit.go
  56. 0
    1
      modules/git/tree_entry_nogogit.go
  57. 0
    1
      modules/git/tree_entry_test.go
  58. 0
    1
      modules/git/tree_gogit.go
  59. 0
    1
      modules/git/tree_nogogit.go
  60. 0
    1
      modules/graceful/manager_unix.go
  61. 0
    1
      modules/graceful/manager_windows.go
  62. 0
    1
      modules/graceful/net_unix.go
  63. 0
    1
      modules/graceful/net_windows.go
  64. 0
    1
      modules/graceful/restart_unix.go
  65. 0
    1
      modules/lfs/pointer_scanner_gogit.go
  66. 0
    1
      modules/lfs/pointer_scanner_nogogit.go
  67. 0
    1
      modules/migration/schemas_bindata.go
  68. 0
    1
      modules/migration/schemas_dynamic.go
  69. 0
    1
      modules/migration/schemas_static.go
  70. 0
    1
      modules/options/dynamic.go
  71. 0
    1
      modules/options/options_bindata.go
  72. 0
    1
      modules/options/static.go
  73. 0
    1
      modules/public/public_bindata.go
  74. 0
    1
      modules/public/serve_dynamic.go
  75. 0
    1
      modules/public/serve_static.go
  76. 0
    1
      modules/setting/database_sqlite.go
  77. 0
    1
      modules/svg/discover_bindata.go
  78. 0
    1
      modules/svg/discover_nobindata.go
  79. 0
    1
      modules/templates/dynamic.go
  80. 0
    1
      modules/templates/static.go
  81. 0
    1
      modules/templates/templates_bindata.go
  82. 0
    1
      routers/api/v1/auth.go
  83. 0
    1
      routers/private/manager_unix.go
  84. 0
    1
      routers/private/manager_windows.go
  85. 0
    1
      routers/web/auth.go
  86. 0
    1
      tools/fuzz.go

+ 0
- 1
build.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build vendor
// +build vendor

package main


+ 0
- 1
build/code-batch-process.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main


+ 0
- 1
build/generate-bindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main


+ 0
- 1
build/generate-emoji.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main


+ 0
- 1
build/generate-gitignores.go View File

@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main


+ 0
- 1
build/generate-licenses.go View File

@@ -1,5 +1,4 @@
//go:build ignore
// +build ignore

package main


+ 0
- 1
build/gitea-format-imports.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build ignore
// +build ignore

package main


+ 0
- 1
build/gocovmerge.go View File

@@ -7,7 +7,6 @@
// merges them into one profile

//go:build ignore
// +build ignore

package main


+ 0
- 1
cmd/embedded.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package cmd


+ 0
- 1
cmd/embedded_stub.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package cmd


+ 0
- 1
modules/auth/pam/pam.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build pam
// +build pam

package pam


+ 0
- 1
modules/auth/pam/pam_stub.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package pam


+ 0
- 1
modules/auth/pam/pam_test.go View File

@@ -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

+ 0
- 1
modules/avatar/identicon/identicon_test.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build test_avatar_identicon
// +build test_avatar_identicon

package identicon


+ 0
- 1
modules/git/blob_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/blob_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/command_race_test.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build race
// +build race

package git


+ 0
- 1
modules/git/commit_convert_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/commit_info_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/commit_info_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/last_commit_cache_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/last_commit_cache_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/notes_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/notes_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/parse_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/parse_gogit_test.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/parse_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/parse_nogogit_test.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/pipeline/lfs.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package pipeline


+ 0
- 1
modules/git/pipeline/lfs_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package pipeline


+ 0
- 1
modules/git/repo_base_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_base_nogogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_blob_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_blob_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_branch_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_branch_nogogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_commit_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_commit_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_commitgraph_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_language_stats_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_language_stats_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_language_stats_test.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_ref_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_ref_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_tag_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_tag_nogogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/repo_tree_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/repo_tree_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/sha1_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/sha1_nogogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/signature_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/signature_nogogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/tree_blob_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/tree_blob_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/tree_entry_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/tree_entry_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/git/tree_entry_test.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/tree_gogit.go View File

@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package git


+ 0
- 1
modules/git/tree_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package git


+ 0
- 1
modules/graceful/manager_unix.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package graceful


+ 0
- 1
modules/graceful/manager_windows.go View File

@@ -4,7 +4,6 @@
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler

//go:build windows
// +build windows

package graceful


+ 0
- 1
modules/graceful/net_unix.go View File

@@ -4,7 +4,6 @@
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler

//go:build !windows
// +build !windows

package graceful


+ 0
- 1
modules/graceful/net_windows.go View File

@@ -4,7 +4,6 @@
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler

//go:build windows
// +build windows

package graceful


+ 0
- 1
modules/graceful/restart_unix.go View File

@@ -4,7 +4,6 @@
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler

//go:build !windows
// +build !windows

package graceful


+ 0
- 1
modules/lfs/pointer_scanner_gogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gogit
// +build gogit

package lfs


+ 0
- 1
modules/lfs/pointer_scanner_nogogit.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package lfs


+ 0
- 1
modules/migration/schemas_bindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package migration


+ 0
- 1
modules/migration/schemas_dynamic.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package migration


+ 0
- 1
modules/migration/schemas_static.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package migration


+ 0
- 1
modules/options/dynamic.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package options


+ 0
- 1
modules/options/options_bindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package options


+ 0
- 1
modules/options/static.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package options


+ 0
- 1
modules/public/public_bindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package public


+ 0
- 1
modules/public/serve_dynamic.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package public


+ 0
- 1
modules/public/serve_static.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package public


+ 0
- 1
modules/setting/database_sqlite.go View File

@@ -1,5 +1,4 @@
//go:build sqlite
// +build sqlite

// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style

+ 0
- 1
modules/svg/discover_bindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package svg


+ 0
- 1
modules/svg/discover_nobindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package svg


+ 0
- 1
modules/templates/dynamic.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

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

package templates


+ 0
- 1
modules/templates/static.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package templates


+ 0
- 1
modules/templates/templates_bindata.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build bindata
// +build bindata

package templates


+ 0
- 1
routers/api/v1/auth.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package v1


+ 0
- 1
routers/private/manager_unix.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package private


+ 0
- 1
routers/private/manager_windows.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build windows
// +build windows

package private


+ 0
- 1
routers/web/auth.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build !windows
// +build !windows

package web


+ 0
- 1
tools/fuzz.go View File

@@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.

//go:build gofuzz
// +build gofuzz

package fuzz


Loading…
Cancel
Save