Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
In order to use ship we need to manually do this one time and then release the tag off main
  • Loading branch information
ewanharris committed Nov 30, 2023
1 parent 00f1fbb commit 49ce9d0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions authentication/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/auth0/go-auth0"
"github.com/auth0/go-auth0/authentication/database"
"github.com/auth0/go-auth0/authentication/oauth"
"github.com/auth0/go-auth0/internal/client"
Expand Down Expand Up @@ -208,7 +209,7 @@ func TestAuth0Client(t *testing.T) {

assert.NoError(t, err)
assert.Equal(t, "go-auth0", auth0Client.Name)
assert.Equal(t, "latest", auth0Client.Version)
assert.Equal(t, auth0.Version, auth0Client.Version)
assert.Equal(t, runtime.Version(), auth0Client.Env["go"])
})
s := httptest.NewTLSServer(h)
Expand Down Expand Up @@ -263,7 +264,7 @@ func TestAuth0Client(t *testing.T) {

assert.NoError(t, err)
assert.Equal(t, "go-auth0", auth0Client.Name)
assert.Equal(t, "latest", auth0Client.Version)
assert.Equal(t, auth0.Version, auth0Client.Version)
assert.Equal(t, runtime.Version(), auth0Client.Env["go"])
assert.Equal(t, "bar", auth0Client.Env["foo"])
})
Expand Down
4 changes: 3 additions & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"time"

"github.com/stretchr/testify/assert"

"github.com/auth0/go-auth0"
)

func TestRetries(t *testing.T) {
Expand Down Expand Up @@ -247,7 +249,7 @@ func TestWrapAuth0ClientInfo(t *testing.T) {
assert.NoError(t, err)

assert.Equal(t, "go-auth0", auth0Client.Name)
assert.Equal(t, "latest", auth0Client.Version)
assert.Equal(t, auth0.Version, auth0Client.Version)
assert.Equal(t, runtime.Version(), auth0Client.Env["go"])
})

Expand Down
5 changes: 3 additions & 2 deletions management/management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
_ "github.com/joho/godotenv/autoload"
"github.com/stretchr/testify/assert"

"github.com/auth0/go-auth0"
"github.com/auth0/go-auth0/internal/client"
)

Expand Down Expand Up @@ -299,7 +300,7 @@ func TestAuth0Client(t *testing.T) {

assert.NoError(t, err)
assert.Equal(t, "go-auth0", auth0Client.Name)
assert.Equal(t, "latest", auth0Client.Version)
assert.Equal(t, auth0.Version, auth0Client.Version)
assert.Equal(t, runtime.Version(), auth0Client.Env["go"])
})
s := httptest.NewServer(h)
Expand Down Expand Up @@ -343,7 +344,7 @@ func TestAuth0Client(t *testing.T) {

assert.NoError(t, err)
assert.Equal(t, "go-auth0", auth0Client.Name)
assert.Equal(t, "latest", auth0Client.Version)
assert.Equal(t, auth0.Version, auth0Client.Version)
assert.Equal(t, runtime.Version(), auth0Client.Env["go"])
assert.Equal(t, "bar", auth0Client.Env["foo"])
})
Expand Down
5 changes: 2 additions & 3 deletions meta.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package auth0

// Version of this library. This value is generated automatically during the
// release process; DO NOT EDIT.
var Version = "latest"
// Version is the package version.
var Version = "1.3.1"

0 comments on commit 49ce9d0

Please sign in to comment.