From: Ichinose Shogo Date: Wed, 4 Aug 2021 20:19:43 +0000 (+0900) Subject: add //go:build lines + add 1.17.0-rc2 to test matrix (#377) X-Git-Tag: v1.7.2~145 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=16f0d4292788daa58e79a55f8557ef20d3cdaa48;p=fsnotify.git add //go:build lines + add 1.17.0-rc2 to test matrix (#377) --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb3d37d..51b9e60 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 ced39cb..b3ac3d8 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 89cab04..0f4ee52 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 f9771d9..51aa49c 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 c56556f..eb87699 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 b33f2b4..e9ff943 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 26623ef..c747545 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 2c11d2e..90c82b8 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 7096344..fc09e03 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 86e76a3..368f5b7 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 2306c46..36cc384 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 870c4d6..98cd847 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 09436f3..c02b75f 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