]> go.fuhry.dev Git - fsnotify.git/commitdiff
Update CI to Go 1.17 - 1.20 (#557)
authorMartin Tournoij <martin@arp242.net>
Thu, 9 Feb 2023 14:31:23 +0000 (15:31 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 14:31:23 +0000 (15:31 +0100)
I have no idea if anyone is using Go 1.16 with fsnotify.

Go 1.16 (released August 2021) became mandatory with v1.5.1 (August
2021). Go 1.17 was released just a few days before it was tagged. Some
people did experience problems (#400), but overall the feedback was
limited.

So based on this, I think it's probably safe to just follow the Go
release policy: "Each major Go release is supported until there are two
newer major releases."

This will allow merging #554

.github/workflows/build.yml
.github/workflows/test.yml
CHANGELOG.md
go.mod

index 74048fb5c4ff224963e020ea789c78c8a855ff09..c1605a7b0903f9f12b2a87c1a2f5102ceecb980c 100644 (file)
@@ -10,7 +10,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        go: ['1.16', '1.19']
+        go: ['1.17', '1.20']
     runs-on: ubuntu-latest
     steps:
       - name: setup Go
index 98b86ea31623449660ed46f09b43da38fa6fe28c..ad3bbdeabff7091137525dca6197383712d889d8 100644 (file)
@@ -15,8 +15,8 @@ jobs:
           - ubuntu-latest
           - windows-latest
         go:
-          - '1.16'
-          - '1.19'
+          - '1.17'
+          - '1.20'
     runs-on: ${{ matrix.os }}
     steps:
       - name: setup Go
@@ -46,7 +46,7 @@ jobs:
 
   # Test only the latest Go version on macOS; we use the macOS builders for BSD
   # and illumos, and GitHub doesn't allow many of them to run concurrently. If
-  # it works on Windows and Linux with Go 1.16, then it probably does on macOS
+  # it works on Windows and Linux with Go 1.17, then it probably does on macOS
   # too.
   testMacOS:
     name: test
@@ -57,7 +57,7 @@ jobs:
           - macos-11
           - macos-12
         go:
-          - '1.19'
+          - '1.20'
     runs-on: ${{ matrix.os }}
     steps:
       - name: setup Go
index 5e08ba521166e2d9a43b01d920a943804d829452..362e81d8c6e9a87dd832c445c6fa32d2dcdab0c7 100644 (file)
@@ -2,6 +2,7 @@
 
 Unreleased
 ----------
+This version of fsnotify needs Go 1.17.
 
 ### Additions
 
diff --git a/go.mod b/go.mod
index 220ed74b20f74e227f4c7e9742586a769450a8a5..e32c1c68d7e25b4a069d3d4ad64cb5e0ade53da2 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/fsnotify/fsnotify
 
-go 1.16
+go 1.17
 
 require golang.org/x/sys v0.0.0-20220908164124-27713097b956