Procházet zdrojové kódy
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
před 2 roky
Žádný účet není propojen s e-mailovou adresou tvůrce revize
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build vendor |
|
|
|
// +build vendor |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -1,5 +1,4 @@ |
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -1,5 +1,4 @@ |
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -7,7 +7,6 @@ |
|
|
|
// merges them into one profile |
|
|
|
|
|
|
|
//go:build ignore |
|
|
|
// +build ignore |
|
|
|
|
|
|
|
package main |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package cmd |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !bindata |
|
|
|
// +build !bindata |
|
|
|
|
|
|
|
package cmd |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build pam |
|
|
|
// +build pam |
|
|
|
|
|
|
|
package pam |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !pam |
|
|
|
// +build !pam |
|
|
|
|
|
|
|
package pam |
|
|
|
|
|
|
@@ -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 |
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build test_avatar_identicon |
|
|
|
// +build test_avatar_identicon |
|
|
|
|
|
|
|
package identicon |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build race |
|
|
|
// +build race |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package pipeline |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package pipeline |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package git |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !windows |
|
|
|
// +build !windows |
|
|
|
|
|
|
|
package graceful |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler |
|
|
|
|
|
|
|
//go:build windows |
|
|
|
// +build windows |
|
|
|
|
|
|
|
package graceful |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler |
|
|
|
|
|
|
|
//go:build !windows |
|
|
|
// +build !windows |
|
|
|
|
|
|
|
package graceful |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler |
|
|
|
|
|
|
|
//go:build windows |
|
|
|
// +build windows |
|
|
|
|
|
|
|
package graceful |
|
|
|
|
|
|
@@ -4,7 +4,6 @@ |
|
|
|
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler |
|
|
|
|
|
|
|
//go:build !windows |
|
|
|
// +build !windows |
|
|
|
|
|
|
|
package graceful |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gogit |
|
|
|
// +build gogit |
|
|
|
|
|
|
|
package lfs |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !gogit |
|
|
|
// +build !gogit |
|
|
|
|
|
|
|
package lfs |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package migration |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !bindata |
|
|
|
// +build !bindata |
|
|
|
|
|
|
|
package migration |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package migration |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !bindata |
|
|
|
// +build !bindata |
|
|
|
|
|
|
|
package options |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package options |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package options |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package public |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !bindata |
|
|
|
// +build !bindata |
|
|
|
|
|
|
|
package public |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package public |
|
|
|
|
|
|
@@ -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 |
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package svg |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !bindata |
|
|
|
// +build !bindata |
|
|
|
|
|
|
|
package svg |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !bindata |
|
|
|
// +build !bindata |
|
|
|
|
|
|
|
package templates |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package templates |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build bindata |
|
|
|
// +build bindata |
|
|
|
|
|
|
|
package templates |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !windows |
|
|
|
// +build !windows |
|
|
|
|
|
|
|
package v1 |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !windows |
|
|
|
// +build !windows |
|
|
|
|
|
|
|
package private |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build windows |
|
|
|
// +build windows |
|
|
|
|
|
|
|
package private |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build !windows |
|
|
|
// +build !windows |
|
|
|
|
|
|
|
package web |
|
|
|
|
|
|
@@ -3,7 +3,6 @@ |
|
|
|
// license that can be found in the LICENSE file. |
|
|
|
|
|
|
|
//go:build gofuzz |
|
|
|
// +build gofuzz |
|
|
|
|
|
|
|
package fuzz |
|
|
|
|