Skip to content

Commit

Permalink
manually adding version into snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed Jan 28, 2021
1 parent a2c3bf7 commit 25f0e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ parts:
- tfswitch
override-build:
VER=$(git ls-remote --tags git://github.com/warrensbox/terraform-switcher | awk '{print $2}'| awk -F"/" '{print $3}' | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -n 2 | head -n1)
go build -v -ldflags "-X main.version=$VER" -o ../install/bin/tfswitch
go build -v -ldflags "-X main.version=0.10.958" -o ../install/bin/tfswitch

0 comments on commit 25f0e56

Please sign in to comment.