From d5971f1106dc782d8760665f056a1f0a7fd74ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ga=C3=9F?= Date: Fri, 27 Sep 2024 11:39:04 +0200 Subject: [PATCH] style: go mod tidy And enable checking for it in CI. Requires updating CI to Go 1.23, which added the -diff flag. --- .github/workflows/ci.yml | 5 ++++- go.mod | 2 +- go.sum | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77d5868..127c1e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,14 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: '1.22' + go-version: '1.23' - name: Checkout repo uses: actions/checkout@v3 + - name: Check go mod tidy + run: go mod tidy -diff + - name: Run go vet run: go vet . diff --git a/go.mod b/go.mod index f328cae..f637be2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/schollz/progressbar/v3 require ( + github.com/chengxilo/virtualterm v1.0.4 github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213 github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db github.com/rivo/uniseg v0.4.7 @@ -9,7 +10,6 @@ require ( ) require ( - github.com/chengxilo/virtualterm v1.0.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect diff --git a/go.sum b/go.sum index 0f23657..49a9962 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/chengxilo/virtualterm v1.0.3 h1:Vycm/mKGeHuLXA4zK3XsaseOW7VMY6jJ88/9+XHSNcA= -github.com/chengxilo/virtualterm v1.0.3/go.mod h1:wjAbIDvnp6Vc8hQoM7tt6fcdk0NiSaQBSoSRwMIpphs= github.com/chengxilo/virtualterm v1.0.4 h1:Z6IpERbRVlfB8WkOmtbHiDbBANU7cimRIof7mk9/PwM= github.com/chengxilo/virtualterm v1.0.4/go.mod h1:DyxxBZz/x1iqJjFxTFcr6/x+jSpqN0iwWCOK1q10rlY= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=