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 8f55d8a
Show file tree
Hide file tree
Showing 4 changed files with 9 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
3 changes: 2 additions & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"testing"
"time"

"github.com/auth0/go-auth0"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -247,7 +248,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
4 changes: 1 addition & 3 deletions meta.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package auth0

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

Check warning on line 3 in meta.go

View workflow job for this annotation

GitHub Actions / Checks

exported: exported var Version should have comment or be unexported (revive)

0 comments on commit 8f55d8a

Please sign in to comment.