Skip to content

Commit

Permalink
Fix a bug in version linking (#159)
Browse files Browse the repository at this point in the history
* Fix a bug in version linking
  • Loading branch information
Sodman authored Aug 17, 2020
1 parent 31d7efb commit 740262b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog/v0.0.26/version-fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changelog:
- type: FIX
description: Fix a bug in version linking which caused the version to be 'dev' on release.
issueLink: https://github.com/solo-io/wasme/issues/158
4 changes: 1 addition & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
# make serve-site -B



# remove the "v" prefix
VERSION ?= $(shell echo $(TAGGED_VERSION) | cut -c 2-)

# GCLOUD_PROJECT_ID Passed by cloudbuild upload-release-assets
GCLOUD_PROJECT_ID := $(GCLOUD_PROJECT_ID)
GCLOUD_PROJECT_ID ?= "solo-public"

GCR_REPO_PREFIX ?= gcr.io/$(GCLOUD_PROJECT_ID)
### REPLACE with product name
Expand Down
13 changes: 10 additions & 3 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
package version

var DevVersion = "dev"

// This will be set by the linker on release builds
var Version = DevVersion
var (
Version string
DevVersion = "dev"
)

func init() {
if Version == "" {
Version = DevVersion
}
}

0 comments on commit 740262b

Please sign in to comment.