Skip to content

Commit

Permalink
Merge pull request #147 from auth0/CLI63-version-on-release
Browse files Browse the repository at this point in the history
fix: version for release binaries
  • Loading branch information
Widcket authored Mar 12, 2021
2 parents 2e15176 + dc10cf6 commit 31a0d0b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ builds:
- linux
- windows
binary: auth0
ldflags:
- -X github.com/auth0/auth0-cli/internal/buildinfo.Version={{.Version}}
- -X github.com/auth0/auth0-cli/internal/buildinfo.Revision={{.Commit}}
- -X github.com/auth0/auth0-cli/internal/buildinfo.BuildUser=goreleaser'
- -X github.com/auth0/auth0-cli/internal/buildinfo.BuildDate={{.Date}}'
archives:
- replacements:
darwin: Darwin
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/auth0/auth0-cli/internal/ansi"
"github.com/auth0/auth0-cli/internal/auth"
"github.com/auth0/auth0-cli/internal/auth0"
"github.com/auth0/auth0-cli/internal/build-info"
"github.com/auth0/auth0-cli/internal/buildinfo"
"github.com/auth0/auth0-cli/internal/display"
"github.com/lestrrat-go/jwx/jwt"
"github.com/spf13/cobra"
Expand Down
5 changes: 3 additions & 2 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package cli

import (
"context"
"os"

"github.com/auth0/auth0-cli/internal/ansi"
"github.com/auth0/auth0-cli/internal/build-info"
"github.com/auth0/auth0-cli/internal/buildinfo"
"github.com/auth0/auth0-cli/internal/display"
"github.com/spf13/cobra"
"os"
)

// Execute is the primary entrypoint of the CLI app.
Expand Down

0 comments on commit 31a0d0b

Please sign in to comment.