Skip to content

Commit

Permalink
chore: go mod tidy, and keep it tidy (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav authored Oct 8, 2023
1 parent 4f972ce commit c37f95a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,21 @@ jobs:
with:
only-new-issues: true

tidy:
name: Remain 'go mod tidy'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Verify tidyness
run: |
go mod tidy
if ! git diff --quiet go.mod go.sum; then
echo "'go mod tidy' resulted in changes:"
git diff go.mod go.sum
echo "Please commit these changes."
fi
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.18

require (
github.com/agnivade/levenshtein v1.1.1
github.com/atotto/clipboard v0.1.4
github.com/caarlos0/env/v6 v6.10.1
github.com/charmbracelet/glamour v0.6.0
github.com/charmbracelet/keygen v0.4.3
Expand All @@ -27,7 +28,6 @@ require (
require (
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/caarlos0/sshmarshal v0.1.0 // indirect
Expand Down

0 comments on commit c37f95a

Please sign in to comment.