Skip to content

Commit

Permalink
Merge pull request #3818 from snyk/chore/cliv2_HMMR-534
Browse files Browse the repository at this point in the history
chore: remove version prefix
  • Loading branch information
PeterSchafer authored Sep 5, 2022
2 parents 155863f + 5283858 commit 4867b3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cliv2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GOHOSTOS = $(shell go env GOHOSTOS)
GOHOSTARCH = $(shell go env GOHOSTARCH)
HASH = sha
HASH_ALGORITHM = 256
CLI_V2_VERSION_TAG = 2.0.0-prerelease
CLI_V2_VERSION_TAG =
CLI_V1_VERSION_TAG =
CLI_V1_LOCATION =

Expand Down
6 changes: 5 additions & 1 deletion cliv2/internal/cliv2/cliv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ func (c *CLI) ExtractV1Binary() error {
}

func (c *CLI) GetFullVersion() string {
return c.v2Version + "." + c.v1Version
if len(c.v2Version) > 0 {
return c.v2Version + "." + c.v1Version
} else {
return c.v1Version
}
}

func (c *CLI) GetIntegrationName() string {
Expand Down

0 comments on commit 4867b3b

Please sign in to comment.