Skip to content

Commit

Permalink
(#115) Fix goreleaser
Browse files Browse the repository at this point in the history
Import modules to take the direct dependency and prevent go mod tidy
from modifying go.mod and go.sum which causes goreleaser to fail.
  • Loading branch information
jeffmccune committed Apr 11, 2024
1 parent a8918c7 commit ab5f17c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ require (
github.com/jackc/pgx/v5 v5.5.5
github.com/lmittmann/tint v1.0.4
github.com/mattn/go-isatty v0.0.20
github.com/mattn/go-runewidth v0.0.9
github.com/olekukonko/tablewriter v0.0.5
github.com/prometheus/client_golang v1.19.0
github.com/rogpeppe/go-internal v1.12.0
github.com/sethvargo/go-retry v0.2.4
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/embedded/patch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
2
7 changes: 7 additions & 0 deletions tidy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package holos

// These imports are here to keep go mod tidy from constantly creating a dirty git state which makes goreleaser fail.
import (
_ "github.com/olekukonko/tablewriter"
_ "github.com/mattn/go-runewidth"
)

0 comments on commit ab5f17c

Please sign in to comment.