Skip to content

Commit

Permalink
add //go:build lines + add 1.17.0-rc2 to test matrix (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Aug 4, 2021
1 parent cc8365b commit 16f0d42
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -13,6 +13,7 @@ jobs:
- macos-latest
- windows-latest
go:
- '1.17.0-rc2'
- '1.16'
- '1.15'
- '1.14'
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions fen.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions fsnotify.go
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions fsnotify_test.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions inotify.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions inotify_poller.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions inotify_poller_test.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions inotify_test.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions integration_test.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions kqueue.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions open_mode_bsd.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions open_mode_darwin.go
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions windows.go
Expand Up @@ -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
Expand Down

0 comments on commit 16f0d42

Please sign in to comment.