Browse Source

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

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

1
build.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build vendor
// +build vendor
package main

1
build/code-batch-process.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
package main

1
build/generate-bindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
package main

1
build/generate-emoji.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
package main

1
build/generate-gitignores.go

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

1
build/generate-licenses.go

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

1
build/gitea-format-imports.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
package main

1
build/gocovmerge.go

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
// merges them into one profile
//go:build ignore
// +build ignore
package main

1
cmd/embedded.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package cmd

1
cmd/embedded_stub.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
// +build !bindata
package cmd

1
modules/auth/pam/pam.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build pam
// +build pam
package pam

1
modules/auth/pam/pam_stub.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !pam
// +build !pam
package pam

1
modules/auth/pam/pam_test.go

@ -1,5 +1,4 @@ @@ -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

1
modules/avatar/identicon/identicon_test.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build test_avatar_identicon
// +build test_avatar_identicon
package identicon

1
modules/git/blob_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/blob_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/command_race_test.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build race
// +build race
package git

1
modules/git/commit_convert_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/commit_info_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/commit_info_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/last_commit_cache_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/last_commit_cache_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/notes_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/notes_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/parse_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/parse_gogit_test.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/parse_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/parse_nogogit_test.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/pipeline/lfs.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package pipeline

1
modules/git/pipeline/lfs_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package pipeline

1
modules/git/repo_base_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_base_nogogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_blob_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_blob_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_branch_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_branch_nogogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_commit_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_commit_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_commitgraph_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_language_stats_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_language_stats_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_language_stats_test.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_ref_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_ref_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_tag_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_tag_nogogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/repo_tree_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/repo_tree_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/sha1_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/sha1_nogogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/signature_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/signature_nogogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/tree_blob_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/tree_blob_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/tree_entry_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/tree_entry_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/git/tree_entry_test.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/tree_gogit.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package git

1
modules/git/tree_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package git

1
modules/graceful/manager_unix.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !windows
// +build !windows
package graceful

1
modules/graceful/manager_windows.go

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

1
modules/graceful/net_unix.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
// +build !windows
package graceful

1
modules/graceful/net_windows.go

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

1
modules/graceful/restart_unix.go

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
// +build !windows
package graceful

1
modules/lfs/pointer_scanner_gogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gogit
// +build gogit
package lfs

1
modules/lfs/pointer_scanner_nogogit.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !gogit
// +build !gogit
package lfs

1
modules/migration/schemas_bindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package migration

1
modules/migration/schemas_dynamic.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
// +build !bindata
package migration

1
modules/migration/schemas_static.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package migration

1
modules/options/dynamic.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
// +build !bindata
package options

1
modules/options/options_bindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package options

1
modules/options/static.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package options

1
modules/public/public_bindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package public

1
modules/public/serve_dynamic.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
// +build !bindata
package public

1
modules/public/serve_static.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package public

1
modules/setting/database_sqlite.go

@ -1,5 +1,4 @@ @@ -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

1
modules/svg/discover_bindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package svg

1
modules/svg/discover_nobindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
// +build !bindata
package svg

1
modules/templates/dynamic.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !bindata
// +build !bindata
package templates

1
modules/templates/static.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package templates

1
modules/templates/templates_bindata.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build bindata
// +build bindata
package templates

1
routers/api/v1/auth.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !windows
// +build !windows
package v1

1
routers/private/manager_unix.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !windows
// +build !windows
package private

1
routers/private/manager_windows.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build windows
// +build windows
package private

1
routers/web/auth.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build !windows
// +build !windows
package web

1
tools/fuzz.go

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
// license that can be found in the LICENSE file.
//go:build gofuzz
// +build gofuzz
package fuzz

Loading…
Cancel
Save