forked from forgejo/forgejo
Add gitea-vet (#10948)
* Add copyright Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add gitea-vet and fix non-compliance Signed-off-by: jolheiser <john.olheiser@gmail.com> * Combine tools.go into build.go and clean up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove extra GO111MODULE=on Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
b74d30ae27
commit
baadb51445
55 changed files with 2990 additions and 101 deletions
6
vendor/golang.org/x/mod/module/module.go
generated
vendored
6
vendor/golang.org/x/mod/module/module.go
generated
vendored
|
@ -123,8 +123,12 @@ type Version struct {
|
|||
Version string `json:",omitempty"`
|
||||
}
|
||||
|
||||
// String returns the module version syntax Path@Version.
|
||||
// String returns a representation of the Version suitable for logging
|
||||
// (Path@Version, or just Path if Version is empty).
|
||||
func (m Version) String() string {
|
||||
if m.Version == "" {
|
||||
return m.Path
|
||||
}
|
||||
return m.Path + "@" + m.Version
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue