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

Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
This commit is contained in:
wxiaoguang 2022-05-02 23:22:45 +08:00 committed by GitHub
parent e2a3f3d259
commit c18d8d6968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
86 changed files with 0 additions and 86 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
//go:build pam //go:build pam
// +build pam
// Copyright 2021 The Gitea Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
//go:build sqlite //go:build sqlite
// +build sqlite
// Copyright 2014 The Gogs Authors. All rights reserved. // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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