浏览代码

all: Update build constraints to Go 1.17 style (#7894)

Jakob Borg 4 年之前
父节点
当前提交
d47745a86b
共有 81 个文件被更改,包括 86 次插入5 次删除
  1. 1 0
      build.go
  2. 2 1
      cmd/strelaypoolsrv/auto/noassets.go
  3. 1 0
      cmd/syncthing/openurl_unix.go
  4. 1 0
      cmd/syncthing/openurl_windows.go
  5. 1 0
      cmd/syncthing/options_others.go
  6. 1 0
      cmd/syncthing/perfstats_unix.go
  7. 1 0
      cmd/syncthing/perfstats_unsupported.go
  8. 2 1
      cmd/syncthing/traceback.go
  9. 2 1
      lib/api/auto/noassets.go
  10. 2 1
      lib/build/tags_race.go
  11. 1 0
      lib/connections/quic_dial.go
  12. 1 0
      lib/connections/quic_listen.go
  13. 1 0
      lib/connections/quic_misc.go
  14. 1 0
      lib/connections/quic_unsupported.go
  15. 1 0
      lib/dialer/control_unix.go
  16. 1 0
      lib/dialer/control_unsupported.go
  17. 1 0
      lib/dialer/control_windows.go
  18. 1 0
      lib/fs/basicfs_copy_range_copyfilerange.go
  19. 1 0
      lib/fs/basicfs_copy_range_duplicateextents.go
  20. 1 0
      lib/fs/basicfs_copy_range_ioctl.go
  21. 1 0
      lib/fs/basicfs_copy_range_sendfile.go
  22. 1 0
      lib/fs/basicfs_fileinfo_unix.go
  23. 1 0
      lib/fs/basicfs_lstat_broken.go
  24. 1 0
      lib/fs/basicfs_lstat_regular.go
  25. 1 0
      lib/fs/basicfs_lstat_windows.go
  26. 1 0
      lib/fs/basicfs_unix.go
  27. 1 0
      lib/fs/basicfs_watch.go
  28. 1 0
      lib/fs/basicfs_watch_errors_linux.go
  29. 1 0
      lib/fs/basicfs_watch_errors_others.go
  30. 1 0
      lib/fs/basicfs_watch_eventtypes_darwin.go
  31. 1 0
      lib/fs/basicfs_watch_eventtypes_fen.go
  32. 1 0
      lib/fs/basicfs_watch_eventtypes_inotify.go
  33. 1 0
      lib/fs/basicfs_watch_eventtypes_kqueue.go
  34. 1 0
      lib/fs/basicfs_watch_eventtypes_other.go
  35. 1 0
      lib/fs/basicfs_watch_eventtypes_readdcw.go
  36. 1 0
      lib/fs/basicfs_watch_test.go
  37. 1 0
      lib/fs/basicfs_watch_unsupported.go
  38. 1 0
      lib/fs/basicfs_windows.go
  39. 1 0
      lib/fs/basicfs_windows_test.go
  40. 1 0
      lib/fs/debug_symlink_unix.go
  41. 2 1
      lib/osutil/atomic_unix_test.go
  42. 1 0
      lib/osutil/filenames_unix.go
  43. 1 0
      lib/osutil/hidden_unix.go
  44. 1 0
      lib/osutil/hidden_windows.go
  45. 1 0
      lib/osutil/lowprio_linux.go
  46. 1 0
      lib/osutil/lowprio_unix.go
  47. 1 0
      lib/osutil/rlimit_unix.go
  48. 1 0
      lib/osutil/rlimit_windows.go
  49. 1 0
      lib/protocol/nativemodel_darwin.go
  50. 1 0
      lib/protocol/nativemodel_unix.go
  51. 1 0
      lib/protocol/nativemodel_windows.go
  52. 1 0
      lib/syncthing/superuser_unix.go
  53. 1 0
      lib/upgrade/upgrade_supported.go
  54. 1 0
      lib/upgrade/upgrade_test.go
  55. 1 0
      lib/upgrade/upgrade_unsupp.go
  56. 1 0
      lib/ur/memsize_solaris.go
  57. 1 0
      lib/ur/memsize_unimpl.go
  58. 1 0
      script/authors.go
  59. 1 0
      script/commit-msg.go
  60. 1 0
      script/genassets.go
  61. 1 0
      script/prune_mocks.go
  62. 1 0
      script/transifexdl.go
  63. 1 0
      script/translate.go
  64. 1 0
      test/cli_test.go
  65. 1 0
      test/conflict_test.go
  66. 1 0
      test/delay_scan_test.go
  67. 1 0
      test/filetype_test.go
  68. 1 0
      test/http_test.go
  69. 1 0
      test/ignore_test.go
  70. 1 0
      test/manypeers_test.go
  71. 1 0
      test/override_test.go
  72. 1 0
      test/parallell_scan_test.go
  73. 1 0
      test/reconnect_test.go
  74. 1 0
      test/reset_test.go
  75. 1 0
      test/scan_test.go
  76. 1 0
      test/symlink_test.go
  77. 1 0
      test/sync_test.go
  78. 1 0
      test/transfer-bench_test.go
  79. 1 0
      test/usage_unix.go
  80. 1 0
      test/usage_windows.go
  81. 1 0
      test/util.go

+ 1 - 0
build.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 package main

+ 2 - 1
cmd/strelaypoolsrv/auto/noassets.go

@@ -4,7 +4,8 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
-//+build noassets
+//go:build noassets
+// +build noassets
 
 package auto
 

+ 1 - 0
cmd/syncthing/openurl_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package main

+ 1 - 0
cmd/syncthing/openurl_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package main

+ 1 - 0
cmd/syncthing/options_others.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package main

+ 1 - 0
cmd/syncthing/perfstats_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !solaris && !windows
 // +build !solaris,!windows
 
 package main

+ 1 - 0
cmd/syncthing/perfstats_unsupported.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build solaris || windows
 // +build solaris windows
 
 package main

+ 2 - 1
cmd/syncthing/traceback.go

@@ -4,7 +4,8 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
-//+build go1.7
+//go:build go1.7
+// +build go1.7
 
 package main
 

+ 2 - 1
lib/api/auto/noassets.go

@@ -4,7 +4,8 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
-//+build noassets
+//go:build noassets
+// +build noassets
 
 package auto
 

+ 2 - 1
lib/build/tags_race.go

@@ -4,7 +4,8 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
-//+build race
+//go:build race
+// +build race
 
 package build
 

+ 1 - 0
lib/connections/quic_dial.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build go1.14 && !noquic && !go1.17
 // +build go1.14,!noquic,!go1.17
 
 package connections

+ 1 - 0
lib/connections/quic_listen.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build go1.14 && !noquic && !go1.17
 // +build go1.14,!noquic,!go1.17
 
 package connections

+ 1 - 0
lib/connections/quic_misc.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build go1.14 && !noquic && !go1.17
 // +build go1.14,!noquic,!go1.17
 
 package connections

+ 1 - 0
lib/connections/quic_unsupported.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build noquic || !go1.14 || go1.17
 // +build noquic !go1.14 go1.17
 
 package connections

+ 1 - 0
lib/dialer/control_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !solaris && !windows
 // +build !solaris,!windows
 
 package dialer

+ 1 - 0
lib/dialer/control_unsupported.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build solaris
 // +build solaris
 
 package dialer

+ 1 - 0
lib/dialer/control_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package dialer

+ 1 - 0
lib/fs/basicfs_copy_range_copyfilerange.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build linux
 // +build linux
 
 package fs

+ 1 - 0
lib/fs/basicfs_copy_range_duplicateextents.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_copy_range_ioctl.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build linux
 // +build linux
 
 package fs

+ 1 - 0
lib/fs/basicfs_copy_range_sendfile.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build linux || solaris
 // +build linux solaris
 
 package fs

+ 1 - 0
lib/fs/basicfs_fileinfo_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_lstat_broken.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build linux || android
 // +build linux android
 
 package fs

+ 1 - 0
lib/fs/basicfs_lstat_regular.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !linux && !android && !windows
 // +build !linux,!android,!windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_lstat_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build (!solaris && !darwin) || (solaris && cgo) || (darwin && cgo)
 // +build !solaris,!darwin solaris,cgo darwin,cgo
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_errors_linux.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build linux
 // +build linux
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_errors_others.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build !linux
 // +build !linux
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_eventtypes_darwin.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build darwin && !kqueue && cgo
 // +build darwin,!kqueue,cgo
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_eventtypes_fen.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build solaris && cgo
 // +build solaris,cgo
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_eventtypes_inotify.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build linux
 // +build linux
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_eventtypes_kqueue.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build dragonfly || freebsd || netbsd || openbsd
 // +build dragonfly freebsd netbsd openbsd
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_eventtypes_other.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build !linux && !windows && !dragonfly && !freebsd && !netbsd && !openbsd && !solaris && !darwin && !cgo
 // +build !linux,!windows,!dragonfly,!freebsd,!netbsd,!openbsd,!solaris,!darwin,!cgo
 
 // Catch all platforms that are not specifically handled to use the generic

+ 1 - 0
lib/fs/basicfs_watch_eventtypes_readdcw.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build (!solaris && !darwin) || (solaris && cgo) || (darwin && cgo)
 // +build !solaris,!darwin solaris,cgo darwin,cgo
 
 package fs

+ 1 - 0
lib/fs/basicfs_watch_unsupported.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build (solaris && !cgo) || (darwin && !cgo)
 // +build solaris,!cgo darwin,!cgo
 
 package fs

+ 1 - 0
lib/fs/basicfs_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package fs

+ 1 - 0
lib/fs/basicfs_windows_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package fs

+ 1 - 0
lib/fs/debug_symlink_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package fs

+ 2 - 1
lib/osutil/atomic_unix_test.go

@@ -4,7 +4,8 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
-//+build !windows
+//go:build !windows
+// +build !windows
 
 // (No syscall.Umask or the equivalent on Windows)
 

+ 1 - 0
lib/osutil/filenames_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows && !darwin
 // +build !windows,!darwin
 
 package osutil

+ 1 - 0
lib/osutil/hidden_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package osutil

+ 1 - 0
lib/osutil/hidden_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package osutil

+ 1 - 0
lib/osutil/lowprio_linux.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !android
 // +build !android
 
 package osutil

+ 1 - 0
lib/osutil/lowprio_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build (!windows && !linux) || android
 // +build !windows,!linux android
 
 package osutil

+ 1 - 0
lib/osutil/rlimit_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package osutil

+ 1 - 0
lib/osutil/rlimit_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build windows
 // +build windows
 
 package osutil

+ 1 - 0
lib/protocol/nativemodel_darwin.go

@@ -1,5 +1,6 @@
 // Copyright (C) 2014 The Protocol Authors.
 
+//go:build darwin
 // +build darwin
 
 package protocol

+ 1 - 0
lib/protocol/nativemodel_unix.go

@@ -1,5 +1,6 @@
 // Copyright (C) 2014 The Protocol Authors.
 
+//go:build !windows && !darwin
 // +build !windows,!darwin
 
 package protocol

+ 1 - 0
lib/protocol/nativemodel_windows.go

@@ -1,5 +1,6 @@
 // Copyright (C) 2014 The Protocol Authors.
 
+//go:build windows
 // +build windows
 
 package protocol

+ 1 - 0
lib/syncthing/superuser_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !windows
 // +build !windows
 
 package syncthing

+ 1 - 0
lib/upgrade/upgrade_supported.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !noupgrade
 // +build !noupgrade
 
 package upgrade

+ 1 - 0
lib/upgrade/upgrade_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build !noupgrade
 // +build !noupgrade
 
 package upgrade

+ 1 - 0
lib/upgrade/upgrade_unsupp.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build noupgrade
 // +build noupgrade
 
 package upgrade

+ 1 - 0
lib/ur/memsize_solaris.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build solaris
 // +build solaris
 
 package ur

+ 1 - 0
lib/ur/memsize_unimpl.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build freebsd || openbsd || dragonfly
 // +build freebsd openbsd dragonfly
 
 package ur

+ 1 - 0
script/authors.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 // Generates the list of contributors in gui/index.html based on contents of

+ 1 - 0
script/commit-msg.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 package main

+ 1 - 0
script/genassets.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 package main

+ 1 - 0
script/prune_mocks.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 package main

+ 1 - 0
script/transifexdl.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 package main

+ 1 - 0
script/translate.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build ignore
 // +build ignore
 
 package main

+ 1 - 0
test/cli_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/conflict_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/delay_scan_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/filetype_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/http_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/ignore_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/manypeers_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/override_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/parallell_scan_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/reconnect_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/reset_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/scan_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/symlink_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/sync_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration

+ 1 - 0
test/transfer-bench_test.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration && benchmark
 // +build integration,benchmark
 
 package integration

+ 1 - 0
test/usage_unix.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build integration && benchmark && !windows
 // +build integration,benchmark,!windows
 
 package integration

+ 1 - 0
test/usage_windows.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
+//go:build integration && benchmark && windows
 // +build integration,benchmark,windows
 
 package integration

+ 1 - 0
test/util.go

@@ -4,6 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
+//go:build integration
 // +build integration
 
 package integration