From a3211dce573c16157144a32c34bbc4e13ee4294e Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Mon, 16 Sep 2024 20:21:43 +0300 Subject: [PATCH] Build: set 1.17 as minimum supported Go version (#3461) --- .github/workflows/nightly.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/test.yaml | 2 +- README.md | 2 +- go.mod | 16 ++++++++++++++-- go.sum | 8 -------- 6 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index bd2daf73..4a3c1c89 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -7,7 +7,7 @@ jobs: nightly: strategy: matrix: - go-version: [1.19.x] + go-version: [1.23.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a5aa9c3..bcd674a0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ jobs: release: strategy: matrix: - go-version: [1.19.x] + go-version: [1.23.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 632717f6..7740429e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.19.x] + go-version: [1.17.x, 1.23.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 34b6ab34..b5d19ff6 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ Without these tools installed, micro will use an internal clipboard for copy and If your operating system does not have a binary release, but does run Go, you can build from source. -Make sure that you have Go version 1.16 or greater and Go modules are enabled. +Make sure that you have Go version 1.17 or greater and Go modules are enabled. ``` git clone https://github.com/zyedidia/micro diff --git a/go.mod b/go.mod index fb782c51..82beacf8 100644 --- a/go.mod +++ b/go.mod @@ -14,17 +14,29 @@ require ( github.com/zyedidia/clipper v0.1.1 github.com/zyedidia/glob v0.0.0-20170209203856-dd4023a66dc3 github.com/zyedidia/json5 v0.0.0-20200102012142-2da050b1a98d - github.com/zyedidia/tcell/v2 v2.0.10 // indirect + github.com/zyedidia/tcell/v2 v2.0.10 github.com/zyedidia/terminal v0.0.0-20230315200948-4b3bcf6dddef golang.org/x/text v0.3.8 gopkg.in/yaml.v2 v2.2.8 layeh.com/gopher-luar v1.0.7 ) +require ( + github.com/creack/pty v1.1.18 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/gdamore/encoding v1.0.0 // indirect + github.com/lucasb-eyer/go-colorful v1.0.3 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rivo/uniseg v0.1.0 // indirect + github.com/xo/terminfo v0.0.0-20200218205459-454e5b68f9e8 // indirect + github.com/zyedidia/poller v1.0.1 // indirect + golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect +) + replace github.com/kballard/go-shellquote => github.com/zyedidia/go-shellquote v0.0.0-20200613203517-eccd813c0655 replace github.com/mattn/go-runewidth => github.com/zyedidia/go-runewidth v0.0.12 replace layeh.com/gopher-luar => github.com/layeh/gopher-luar v1.0.7 -go 1.16 +go 1.17 diff --git a/go.sum b/go.sum index ff815cd0..2a81b5d3 100644 --- a/go.sum +++ b/go.sum @@ -54,14 +54,6 @@ github.com/zyedidia/json5 v0.0.0-20200102012142-2da050b1a98d h1:zmDMkh22zXOB7gz8 github.com/zyedidia/json5 v0.0.0-20200102012142-2da050b1a98d/go.mod h1:NDJSTTYWivnza6zkRapeX2/LwhKPEMQ7bJxqgDVT78I= github.com/zyedidia/poller v1.0.1 h1:Tt9S3AxAjXwWGNiC2TUdRJkQDZSzCBNVQ4xXiQ7440s= github.com/zyedidia/poller v1.0.1/go.mod h1:vZXJOHGDcuK08GXhF6IAY0ZFd2WcgOR5DOTp84Uk5eE= -github.com/zyedidia/tcell/v2 v2.0.9 h1:FxXRkE62N0GPHES7EMLtp2rteYqC9r1kVid8vJN1kOE= -github.com/zyedidia/tcell/v2 v2.0.9/go.mod h1:i4NNlquIQXFeNecrOgxDQQJdu+7LmTi3g62asvmwUws= -github.com/zyedidia/tcell/v2 v2.0.10-0.20221007181625-f562052bccb8 h1:53ULv4mmLyQDnqbjVxanckP57WSreWHwTmlLJrJEutY= -github.com/zyedidia/tcell/v2 v2.0.10-0.20221007181625-f562052bccb8/go.mod h1:i4NNlquIQXFeNecrOgxDQQJdu+7LmTi3g62asvmwUws= -github.com/zyedidia/tcell/v2 v2.0.10-0.20230320201625-54f6acdada4a h1:W4TWa++Wk6uRGxZoxr2nPX1TpIEl+Wxv0mTtocG4TYc= -github.com/zyedidia/tcell/v2 v2.0.10-0.20230320201625-54f6acdada4a/go.mod h1:i4NNlquIQXFeNecrOgxDQQJdu+7LmTi3g62asvmwUws= -github.com/zyedidia/tcell/v2 v2.0.10-0.20230831153116-061c5b2c7260 h1:SCAmAacT5BxZsmOFdFy5zwwi6nj1MjA60gydjKdTgXo= -github.com/zyedidia/tcell/v2 v2.0.10-0.20230831153116-061c5b2c7260/go.mod h1:i4NNlquIQXFeNecrOgxDQQJdu+7LmTi3g62asvmwUws= github.com/zyedidia/tcell/v2 v2.0.10 h1:6fbbYAx/DYc9A//4jU1OeBrxtc9qJxYCZXCtGQbtTWU= github.com/zyedidia/tcell/v2 v2.0.10/go.mod h1:i4NNlquIQXFeNecrOgxDQQJdu+7LmTi3g62asvmwUws= github.com/zyedidia/terminal v0.0.0-20230315200948-4b3bcf6dddef h1:LeB4Qs0Tss4r/Qh8pfsTTqagDYHysfKJLYzAH3MVfu0=