mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-12 15:00:39 +00:00
fix gomod version
This commit is contained in:
parent
13ea089967
commit
7e4c4257eb
@ -22,10 +22,10 @@ If you want to install from source using `go install`, just run:
|
||||
|
||||
```Shell
|
||||
# keep in mind that with this, it will compile from source and won't show the version on cli -h.
|
||||
go install github.com/thegeeklab/git-sv/v2/cmd/git-sv@latest
|
||||
go install github.com/thegeeklab/git-sv/cmd/git-sv@latest
|
||||
|
||||
# if you want to add the version on the binary, run this command instead.
|
||||
GITSV_VERSION=$(go list -f '{{ .Version }}' -m github.com/thegeeklab/git-sv/v2@latest | sed 's/v//') && go install --ldflags "-X main.Version=$SGITSV_VERSION" github.com/thegeeklab/git-sv/v2/cmd/git-sv@v$GITSV_VERSION
|
||||
GITSV_VERSION=$(go list -f '{{ .Version }}' -m github.com/thegeeklab/git-sv/v2@latest | sed 's/v//') && go install --ldflags "-X main.Version=$SGITSV_VERSION" github.com/thegeeklab/git-sv/cmd/git-sv@v$GITSV_VERSION
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/v2/sv/formatter"
|
||||
"github.com/thegeeklab/git-sv/v2/templates"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/thegeeklab/git-sv/sv/formatter"
|
||||
"github.com/thegeeklab/git-sv/templates"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"os"
|
||||
"sort"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package commands
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package commands
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/urfave/cli/v2"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package commands
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package commands
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package commands
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
)
|
||||
|
||||
func getTagCommits(gsv app.GitSV, tag string) ([]sv.CommitLog, error) {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"dario.cat/mergo"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
)
|
||||
|
||||
func Test_merge(t *testing.T) {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/app"
|
||||
"github.com/thegeeklab/git-sv/v2/app/commands"
|
||||
"github.com/thegeeklab/git-sv/app"
|
||||
"github.com/thegeeklab/git-sv/app/commands"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/thegeeklab/git-sv/v2
|
||||
module github.com/thegeeklab/git-sv
|
||||
|
||||
go 1.19
|
||||
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
)
|
||||
|
||||
type releaseNoteTemplateVariables struct {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/v2/templates"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
"github.com/thegeeklab/git-sv/templates"
|
||||
)
|
||||
|
||||
var tmpls = templates.New("")
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/Masterminds/sprig/v3"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
)
|
||||
|
||||
//go:embed assets
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/thegeeklab/git-sv/v2/sv"
|
||||
"github.com/thegeeklab/git-sv/sv"
|
||||
)
|
||||
|
||||
func Test_checkTemplatesFiles(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user