0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-24 21:20:40 +00:00

fix gomod version

This commit is contained in:
Robert Kaussow 2023-10-16 21:41:33 +02:00
parent 13ea089967
commit 7e4c4257eb
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
21 changed files with 34 additions and 34 deletions

View File

@ -22,10 +22,10 @@ If you want to install from source using `go install`, just run:
```Shell ```Shell
# keep in mind that with this, it will compile from source and won't show the version on cli -h. # 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. # 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 ### Configuration

View File

@ -12,9 +12,9 @@ import (
"time" "time"
"github.com/Masterminds/semver/v3" "github.com/Masterminds/semver/v3"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/thegeeklab/git-sv/v2/sv/formatter" "github.com/thegeeklab/git-sv/sv/formatter"
"github.com/thegeeklab/git-sv/v2/templates" "github.com/thegeeklab/git-sv/templates"
) )
const ( const (

View File

@ -5,8 +5,8 @@ import (
"os" "os"
"sort" "sort"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -3,8 +3,8 @@ package commands
import ( import (
"fmt" "fmt"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -5,7 +5,7 @@ import (
"os" "os"
"time" "time"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -3,7 +3,7 @@ package commands
import ( import (
"fmt" "fmt"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -3,8 +3,8 @@ package commands
import ( import (
"fmt" "fmt"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -3,8 +3,8 @@ package commands
import ( import (
"fmt" "fmt"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -6,8 +6,8 @@ import (
"time" "time"
"github.com/Masterminds/semver/v3" "github.com/Masterminds/semver/v3"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -3,8 +3,8 @@ package commands
import ( import (
"fmt" "fmt"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -8,8 +8,8 @@ import (
"time" "time"
"github.com/Masterminds/semver/v3" "github.com/Masterminds/semver/v3"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
) )
func getTagCommits(gsv app.GitSV, tag string) ([]sv.CommitLog, error) { func getTagCommits(gsv app.GitSV, tag string) ([]sv.CommitLog, error) {

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View File

@ -8,7 +8,7 @@ import (
"dario.cat/mergo" "dario.cat/mergo"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -4,7 +4,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
) )
func Test_merge(t *testing.T) { func Test_merge(t *testing.T) {

View File

@ -7,8 +7,8 @@ import (
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/thegeeklab/git-sv/v2/app" "github.com/thegeeklab/git-sv/app"
"github.com/thegeeklab/git-sv/v2/app/commands" "github.com/thegeeklab/git-sv/app/commands"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/thegeeklab/git-sv/v2 module github.com/thegeeklab/git-sv
go 1.19 go 1.19

View File

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/Masterminds/semver/v3" "github.com/Masterminds/semver/v3"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
) )
type releaseNoteTemplateVariables struct { type releaseNoteTemplateVariables struct {

View File

@ -6,8 +6,8 @@ import (
"time" "time"
"github.com/Masterminds/semver/v3" "github.com/Masterminds/semver/v3"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
"github.com/thegeeklab/git-sv/v2/templates" "github.com/thegeeklab/git-sv/templates"
) )
var tmpls = templates.New("") var tmpls = templates.New("")

View File

@ -9,7 +9,7 @@ import (
"github.com/Masterminds/sprig/v3" "github.com/Masterminds/sprig/v3"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
) )
//go:embed assets //go:embed assets

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/thegeeklab/git-sv/v2/sv" "github.com/thegeeklab/git-sv/sv"
) )
func Test_checkTemplatesFiles(t *testing.T) { func Test_checkTemplatesFiles(t *testing.T) {