From 58971182cae5da745594295566e5eaa7c2f7c320 Mon Sep 17 00:00:00 2001
From: Stefan Haller
Date: Sat, 18 Nov 2023 16:01:03 +0100
Subject: [PATCH 1/3] Fix go.mod file (go-difflib dependency should be
indirect)
This broke with commit 7af371701d, but nobody noticed yet.
---
go.mod | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go.mod b/go.mod
index b082b968bdc0..2126b6ab3d5e 100644
--- a/go.mod
+++ b/go.mod
@@ -26,7 +26,6 @@ require (
github.com/mattn/go-runewidth v0.0.15
github.com/mgutz/str v1.2.0
github.com/mitchellh/go-ps v1.0.0
- github.com/pmezard/go-difflib v1.0.0
github.com/sahilm/fuzzy v0.1.0
github.com/samber/lo v1.31.0
github.com/sanity-io/litter v1.5.2
@@ -63,6 +62,7 @@ require (
github.com/onsi/ginkgo v1.10.3 // indirect
github.com/onsi/gomega v1.7.1 // indirect
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
+ github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/xanzy/ssh-agent v0.2.1 // indirect
From 1b4e76797f2a9ba52f6d5db0c677f9ea30ecd4f6 Mon Sep 17 00:00:00 2001
From: Stefan Haller
Date: Sat, 18 Nov 2023 16:03:51 +0100
Subject: [PATCH 2/3] Add "go mod tidy" check to CI
This should catch errors like this earlier.
---
.github/workflows/ci.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d5d5651ff109..247dbe68b22d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -131,6 +131,10 @@ jobs:
# ensure our vendor directory matches up with our go modules
run: |
go mod vendor && git diff --exit-code || (echo "Unexpected change to vendor directory. Run 'go mod vendor' locally and commit the changes" && exit 1)
+ - name: Check go.mod file
+ # ensure our go.mod file is clean
+ run: |
+ go mod tidy && git diff --exit-code || (echo "go.mod file is not clean. Run 'go mod tidy' locally and commit the changes" && exit 1)
- name: Check All Auto-Generated Files
# ensure all our auto-generated files are up to date
run: |
From bb87642aee6bf6f599607e771d7a238a21eb4d81 Mon Sep 17 00:00:00 2001
From: README-bot
Date: Sun, 19 Nov 2023 16:10:18 +0000
Subject: [PATCH 3/3] Updated README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6ee460088e75..aab7b057c875 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ A simple terminal UI for git commands
-
+
## Elevator Pitch