]> go.fuhry.dev Git - fsnotify.git/commitdiff
add //go:build lines + add 1.17.0-rc2 to test matrix (#377)
authorIchinose Shogo <shogo82148@gmail.com>
Wed, 4 Aug 2021 20:19:43 +0000 (05:19 +0900)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 20:19:43 +0000 (21:19 +0100)
13 files changed:
.github/workflows/test.yml
fen.go
fsnotify.go
fsnotify_test.go
inotify.go
inotify_poller.go
inotify_poller_test.go
inotify_test.go
integration_test.go
kqueue.go
open_mode_bsd.go
open_mode_darwin.go
windows.go

index cb3d37d1325533374758ca0ee70a1afa10af1aa6..51b9e60322b0d1a97685e2121c456b31913066e8 100644 (file)
@@ -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 ced39cb881e6836902c6c260162f88407a1392dc..b3ac3d8f55faf53adf88849af1cb884946a51917 100644 (file)
--- 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
index 89cab046d124bbfc86ad58a89b06dcbfb22f4a9a..0f4ee52e8aa202bc8c6d89eaa2c5f4efd554f69e 100644 (file)
@@ -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.
index f9771d9dfe5a94a440d7454b0e60b939586dc6e7..51aa49c58f551258efc51bd8b68f43ee3688e15a 100644 (file)
@@ -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
index c56556f4396e6d72986e8546f6ce64862b97cd70..eb87699b5b4c15494d394afbd9dd689341a38e9b 100644 (file)
@@ -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
index b33f2b4d4b799ba4b74f85c2ec188e5388928c0c..e9ff9439f7f096cab94b43a40868b0e0fa454e64 100644 (file)
@@ -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
index 26623efeffa3d382b05edb9c25747921e584fcc6..c7475454c2900a7b3691d7679ee7aa2c151104fa 100644 (file)
@@ -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
index 2c11d2ed9c807ab1c27e33b7a832bea96e5e5acd..90c82b8ef7e0fce45f0e33ec95bc01821d2e4c2a 100644 (file)
@@ -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
index 7096344d5b4ad8149607777ac4cb954b670520fa..fc09e03f78141d81d0f0c3c1d5e1173bcb54b89d 100644 (file)
@@ -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
index 86e76a3d676836ae8857edb1ed507461c3558196..368f5b790d4de625f4e953dfb1001f60590d27f3 100644 (file)
--- 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
index 2306c4620bf6dbd40e6d9eecfbc36f5d3bebea1b..36cc3845b6e7b0d5fe5ee638bb10ecf3d84d87fb 100644 (file)
@@ -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
index 870c4d6d184509ae6c94d4db99028146029cf4c6..98cd8476ffb886ccd8a290bacca66c6cf272942a 100644 (file)
@@ -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
index 09436f31d821728522bb5548c091f7e0f5990ba2..c02b75f7c374733c4c657215d59b1afd00dada9a 100644 (file)
@@ -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