diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb3d37d1..51b9e603 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,7 @@ jobs: - macos-latest - windows-latest go: + - '1.17.0-rc2' - '1.16' - '1.15' - '1.14' @@ -24,6 +25,7 @@ jobs: uses: actions/setup-go@v2 with: go-version: ${{ matrix.go }} + stable: false # for Go 1.17.0-rc2, it's not stable now. (2021-08-03) - name: checkout uses: actions/checkout@v2 diff --git a/fen.go b/fen.go index ced39cb8..b3ac3d8f 100644 --- a/fen.go +++ b/fen.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build solaris // +build solaris package fsnotify diff --git a/fsnotify.go b/fsnotify.go index 89cab046..0f4ee52e 100644 --- a/fsnotify.go +++ b/fsnotify.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !plan9 // +build !plan9 // Package fsnotify provides a platform-independent interface for file system notifications. diff --git a/fsnotify_test.go b/fsnotify_test.go index f9771d9d..51aa49c5 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !plan9 // +build !plan9 package fsnotify diff --git a/inotify.go b/inotify.go index c56556f4..eb87699b 100644 --- a/inotify.go +++ b/inotify.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux // +build linux package fsnotify diff --git a/inotify_poller.go b/inotify_poller.go index b33f2b4d..e9ff9439 100644 --- a/inotify_poller.go +++ b/inotify_poller.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux // +build linux package fsnotify diff --git a/inotify_poller_test.go b/inotify_poller_test.go index 26623efe..c7475454 100644 --- a/inotify_poller_test.go +++ b/inotify_poller_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux // +build linux package fsnotify diff --git a/inotify_test.go b/inotify_test.go index 2c11d2ed..90c82b8e 100644 --- a/inotify_test.go +++ b/inotify_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux // +build linux package fsnotify diff --git a/integration_test.go b/integration_test.go index 7096344d..fc09e03f 100644 --- a/integration_test.go +++ b/integration_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !plan9 && !solaris // +build !plan9,!solaris package fsnotify diff --git a/kqueue.go b/kqueue.go index 86e76a3d..368f5b79 100644 --- a/kqueue.go +++ b/kqueue.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build freebsd || openbsd || netbsd || dragonfly || darwin // +build freebsd openbsd netbsd dragonfly darwin package fsnotify diff --git a/open_mode_bsd.go b/open_mode_bsd.go index 2306c462..36cc3845 100644 --- a/open_mode_bsd.go +++ b/open_mode_bsd.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build freebsd || openbsd || netbsd || dragonfly // +build freebsd openbsd netbsd dragonfly package fsnotify diff --git a/open_mode_darwin.go b/open_mode_darwin.go index 870c4d6d..98cd8476 100644 --- a/open_mode_darwin.go +++ b/open_mode_darwin.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build darwin // +build darwin package fsnotify diff --git a/windows.go b/windows.go index 09436f31..c02b75f7 100644 --- a/windows.go +++ b/windows.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build windows // +build windows package fsnotify