Remove legacy +build comments; use go:build only

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
This commit is contained in:
Brad Fitzpatrick 2023-12-31 08:53:38 -08:00
parent a549aab217
commit bec657b7e2
31 changed files with 2 additions and 43 deletions

View File

@ -1,5 +1,4 @@
//go:build js
// +build js
/*
Copyright 2016 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build ignore
// +build ignore
/*
Copyright 2016 The Perkeep Authors.
@ -48,7 +47,7 @@ func main() {
}()
}
fmt.Fprintln(out, `// +build js
fmt.Fprintln(out, `//go:build js
// generated by gensearchtypes.go; DO NOT EDIT

View File

@ -1,5 +1,4 @@
//go:build js
// +build js
//go:generate go run gensearchtypes.go -out zsearch.go

View File

@ -1,5 +1,4 @@
//go:build js
// +build js
/*
Copyright 2016 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build ignore
// +build ignore
/*
Copyright 2017 The Perkeep Authors.

View File

@ -1,6 +1,3 @@
//go:build darwin
// +build darwin
package main
import (

View File

@ -1,6 +1,3 @@
//go:build linux
// +build linux
// TODO: move this to somewhere generic in osutil; use it for all
// posix-y operation systems? Or rather, don't clean bad fields, but
// provide a portable way to extract all good fields.

View File

@ -1,6 +1,3 @@
//go:build windows
// +build windows
package main
import "syscall"

1
deps/deps.go vendored
View File

@ -1,5 +1,4 @@
//go:build deps
// +build deps
// Package deps depends on go modules in order to work around the fact that
// `go mod` subcommands will end up removing dependencies from the vendor directory

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
/*
Copyright 2013 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build !nocgo
// +build !nocgo
/*
Copyright 2016 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build nocgo
// +build nocgo
/*
Copyright 2016 The Perkeep Authors.

View File

@ -1,6 +1,3 @@
//go:build freebsd
// +build freebsd
/*
Copyright 2012 The Perkeep Authors.

View File

@ -1,6 +1,3 @@
//go:build windows
// +build windows
/*
Copyright 2014 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build solaris
// +build solaris
/*
Copyright 2014 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build ignore
// +build ignore
/*
Copyright 2013 The Perkeep Authors
@ -798,7 +797,7 @@ func embedClosure(closureDir, embedFile string) error {
// then embed it as a quoted string
var qb bytes.Buffer
fmt.Fprint(&qb, "// +build with_embed\n\n")
fmt.Fprint(&qb, "//go:build with_embed\n\n")
fmt.Fprint(&qb, "package closure\n\n")
fmt.Fprint(&qb, "import \"time\"\n\n")
fmt.Fprint(&qb, "func init() {\n")

View File

@ -1,5 +1,4 @@
//go:build ignore
// +build ignore
/*
Copyright 2015 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build ignore
// +build ignore
/*
Copyright 2015 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build ignore
// +build ignore
/*
Copyright 2016 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
/*
Copyright 2021 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
/*
Copyright 2011 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build fake_android
// +build fake_android
/*
Copyright 2015 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build !fake_android
// +build !fake_android
/*
Copyright 2015 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build js
// +build js
/*
Copyright 2018 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build fake_android
// +build fake_android
/*
Copyright 2015 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
/*
Copyright 2018 The Perkeep Authors

1
pkg/env/env_nojs.go vendored
View File

@ -1,5 +1,4 @@
//go:build !js
// +build !js
/*
Copyright 2017 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build !nocgo
// +build !nocgo
/*
Copyright 2016 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build nocgo
// +build nocgo
/*
Copyright 2016 The Perkeep Authors.

View File

@ -1,5 +1,4 @@
//go:build cgo
// +build cgo
/*
Copyright 2015 The Perkeep Authors

View File

@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
/*
Copyright 2017 The Perkeep Authors.