Skip to content

Commit

Permalink
fix: correct go install latest
Browse files Browse the repository at this point in the history
Bump the code to v2 such that go install will function.

Fixes: #145
  • Loading branch information
retr0h committed Feb 6, 2024
1 parent 4015ae5 commit 78ac1e5
Show file tree
Hide file tree
Showing 26 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/spf13/viper"
"gopkg.in/yaml.v3"

"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/pkg/config"
)

// initCmd represents the init command
Expand Down
2 changes: 1 addition & 1 deletion cmd/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package cmd
import (
"github.com/spf13/cobra"

"github.com/retr0h/gilt/pkg/repositories"
"github.com/retr0h/gilt/v2/pkg/repositories"
)

// overlayCmd represents the overlay command
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/spf13/viper"
"golang.org/x/term"

"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/pkg/config"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ brew install retr0h/tap/gilt
## Go Install

```bash
go install github.com/retr0h/gilt@latest
go install github.com/retr0h/gilt/v2@latest
```

## Python
Expand Down
4 changes: 2 additions & 2 deletions examples/go-client/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module example.com/client

go 1.21.0

replace github.com/retr0h/gilt => ../../../gilt/
replace github.com/retr0h/gilt/v2 => ../../../gilt/

require (
github.com/lmittmann/tint v1.0.4
github.com/retr0h/gilt v1.0.2
github.com/retr0h/gilt/v2 v2.1.1
)

require (
Expand Down
4 changes: 2 additions & 2 deletions examples/go-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/lmittmann/tint"

"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/pkg/repositories"
"github.com/retr0h/gilt/v2/pkg/config"
"github.com/retr0h/gilt/v2/pkg/repositories"
)

type repositoriesManager interface {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/retr0h/gilt
module github.com/retr0h/gilt/v2

go 1.21.0

Expand Down
4 changes: 2 additions & 2 deletions internal/exec/exec_public_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/internal/exec"
"github.com/retr0h/gilt/v2/internal"
"github.com/retr0h/gilt/v2/internal/exec"
)

type ExecManagerPublicTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/v2/internal"
)

// New factory to create a new Git instance.
Expand Down
6 changes: 3 additions & 3 deletions internal/git/git_public_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/internal/git"
"github.com/retr0h/gilt/internal/mocks/exec"
"github.com/retr0h/gilt/v2/internal"
"github.com/retr0h/gilt/v2/internal/git"
"github.com/retr0h/gilt/v2/internal/mocks/exec"
)

type GitManagerPublicTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/git/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/v2/internal"
)

// Git implementation responsible for Git operations.
Expand Down
2 changes: 1 addition & 1 deletion internal/mocks/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package mocks

import (
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/pkg/config"
)

// RepositoryManager manager responsible for Repository operations.
Expand Down
2 changes: 1 addition & 1 deletion internal/mocks/repository/repository_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/path/path_public_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal/path"
"github.com/retr0h/gilt/v2/internal/path"
)

type PathPublicTestSuite struct {
Expand Down
6 changes: 3 additions & 3 deletions internal/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
intPath "github.com/retr0h/gilt/internal/path"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal"
intPath "github.com/retr0h/gilt/v2/internal/path"
"github.com/retr0h/gilt/v2/pkg/config"
)

// New factory to create a new Repository instance.
Expand Down
10 changes: 5 additions & 5 deletions internal/repositories/repositories_public_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/internal/mocks/exec"
"github.com/retr0h/gilt/internal/mocks/repository"
"github.com/retr0h/gilt/internal/repositories"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal"
"github.com/retr0h/gilt/v2/internal/mocks/exec"
"github.com/retr0h/gilt/v2/internal/mocks/repository"
"github.com/retr0h/gilt/v2/internal/repositories"
"github.com/retr0h/gilt/v2/pkg/config"
)

type RepositoriesPublicTestSuite struct {
Expand Down
6 changes: 3 additions & 3 deletions internal/repositories/repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal/mocks/exec"
"github.com/retr0h/gilt/internal/mocks/repository"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal/mocks/exec"
"github.com/retr0h/gilt/v2/internal/mocks/repository"
"github.com/retr0h/gilt/v2/pkg/config"
)

type RepositoriesTestSuite struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/repositories/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal"
"github.com/retr0h/gilt/v2/pkg/config"
)

// Repositories perform repository operations.
Expand Down
2 changes: 1 addition & 1 deletion internal/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package internal

import (
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/pkg/config"
)

// RepositoryManager manager responsible for Repository operations.
Expand Down
2 changes: 1 addition & 1 deletion internal/repository/copy_public_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal/repository"
"github.com/retr0h/gilt/v2/internal/repository"
)

type CopyPublicTestSuite struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal"
"github.com/retr0h/gilt/v2/pkg/config"
)

// We'll use this to normalize Git URLs as "safe" filenames
Expand Down
10 changes: 5 additions & 5 deletions internal/repository/repository_public_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"github.com/retr0h/gilt/internal/mocks"
"github.com/retr0h/gilt/internal/mocks/git"
mock_repo "github.com/retr0h/gilt/internal/mocks/repository"
"github.com/retr0h/gilt/internal/repository"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal/mocks"
"github.com/retr0h/gilt/v2/internal/mocks/git"
mock_repo "github.com/retr0h/gilt/v2/internal/mocks/repository"
"github.com/retr0h/gilt/v2/internal/repository"
"github.com/retr0h/gilt/v2/pkg/config"
)

type RepositoryPublicTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/repository/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/v2/internal"
)

// Repository contains the repository's details for cloning.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package main

import (
"github.com/retr0h/gilt/cmd"
"github.com/retr0h/gilt/v2/cmd"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions pkg/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ import (
"github.com/danjacques/gofslock/fslock"
"github.com/spf13/afero"

"github.com/retr0h/gilt/internal/exec"
"github.com/retr0h/gilt/internal/git"
intPath "github.com/retr0h/gilt/internal/path"
intRepos "github.com/retr0h/gilt/internal/repositories"
"github.com/retr0h/gilt/internal/repository"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal/exec"
"github.com/retr0h/gilt/v2/internal/git"
intPath "github.com/retr0h/gilt/v2/internal/path"
intRepos "github.com/retr0h/gilt/v2/internal/repositories"
"github.com/retr0h/gilt/v2/internal/repository"
"github.com/retr0h/gilt/v2/pkg/config"
)

// New factory to create a new Repository instance.
Expand Down
4 changes: 2 additions & 2 deletions pkg/repositories/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (

"github.com/spf13/afero"

"github.com/retr0h/gilt/internal"
"github.com/retr0h/gilt/pkg/config"
"github.com/retr0h/gilt/v2/internal"
"github.com/retr0h/gilt/v2/pkg/config"
)

// Repositories perform repository operations.
Expand Down

0 comments on commit 78ac1e5

Please sign in to comment.