Skip to content

Commit

Permalink
[pocketbase#69] automatically add version information
Browse files Browse the repository at this point in the history
  • Loading branch information
clysto authored Jul 11, 2022
1 parent 10d7fae commit ec0d3b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ before:
builds:
- main: ./examples/base
binary: pocketbase
ldflags:
- -s -w -X github.com/pocketbase/pocketbase.Version={{ .Version }}
env:
- CGO_ENABLED=0
goos:
Expand Down
2 changes: 1 addition & 1 deletion pocketbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
var _ core.App = (*PocketBase)(nil)

// Version of PocketBase
const Version = "0.1.0"
var Version = "(untracked)"

// appWrapper serves as a private core.App instance wrapper.
type appWrapper struct {
Expand Down

0 comments on commit ec0d3b0

Please sign in to comment.