Skip to content

Commit

Permalink
Extract internal/stub into separate repo (#441)
Browse files Browse the repository at this point in the history
Extracted into https://github.com/abhinav/stub-go.
git-spice is GPL3, but as the sole author of this package,
I am relicensing it to BSD-3 in that repository.
  • Loading branch information
abhinav authored Oct 5, 2024
1 parent bd0d180 commit 1dcf721
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 100 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ require (
github.com/zalando/go-keyring v0.2.5
go.abhg.dev/komplete v0.1.0
go.abhg.dev/requiredfield v0.3.0
go.abhg.dev/testing/stub v0.2.0
go.uber.org/mock v0.4.0
golang.org/x/oauth2 v0.23.0
gopkg.in/dnaeon/go-vcr.v4 v4.0.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ go.abhg.dev/komplete v0.1.0 h1:OE/uazFmWxrYYxttaKri9UpVr/i3J2Iv1vh21mYVom8=
go.abhg.dev/komplete v0.1.0/go.mod h1:MYxEW+7RETaNiYbeZv0LOSBmiZ2vfzfk/6m36EC04kc=
go.abhg.dev/requiredfield v0.3.0 h1:/fOqPt7t1SktSZVGUNXMg5djO8GasUh+G1ez111UEcs=
go.abhg.dev/requiredfield v0.3.0/go.mod h1:ML+QbQ96X7jzJK68sDI4BafOEIZNAB4DHLXl78TrPZI=
go.abhg.dev/testing/stub v0.2.0 h1:hg4OxV0PKZTs2qTXBwM413glmyqbSjrIsJPtPVb7zfE=
go.abhg.dev/testing/stub v0.2.0/go.mod h1:Ipbx8f7WMQ++sxcRzjUnc4cKMnzBd8SqyuSzXPLxFe0=
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
Expand Down
73 changes: 0 additions & 73 deletions internal/stub/stub.go

This file was deleted.

25 changes: 0 additions & 25 deletions internal/stub/stub_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
package main

import (
_ "go.uber.org/mock/mockgen"
_ "go.abhg.dev/requiredfield/cmd/requiredfield"
_ "go.uber.org/mock/mockgen"
)
2 changes: 1 addition & 1 deletion version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/alecthomas/kong"
"github.com/stretchr/testify/assert"
"go.abhg.dev/gs/internal/stub"
"go.abhg.dev/testing/stub"
)

func TestVersionFlag(t *testing.T) {
Expand Down

0 comments on commit 1dcf721

Please sign in to comment.