dce-cli icon indicating copy to clipboard operation
dce-cli copied to clipboard

After installing v0.5.0, the "dce version" still shows up as v0.4.0

Open gundkalneha opened this issue 5 years ago • 2 comments

Version

  • DCE CLI v0.4.0
  • Darwin C02XC78CJGH5 17.7.0 Darwin Kernel Version 17.7.0: Sun Jun 2 20:31:42 PDT 2019; root:xnu-4570.71.46~1/RELEASE_X86_64 x86_64
  • go version go1.14.2 darwin/amd64
  • Terraform v0.12.20

Describe the bug Trying to upgrade v0.4.0 to v0.5.0. When installing DCE CLI with version 0.5.0, the dce version in terminal still appears as 0.4.0.

To Reproduce

Steps to reproduce the behavior:

  1. When I type this Command, I get the following output

Download the zip file

wget https://github.com/Optum/dce-cli/releases/download/v0.5.0/dce_darwin_amd64.zip

Unzip to a directory on your path

unzip dce_darwin_amd64.zip -d /usr/local/bin ~ dce version **0.4.0**

Expected behavior Version should be 0.5.0 but shows 0.4.0

gundkalneha avatar May 08 '20 14:05 gundkalneha

I think this occurred because "0.5.0" was built on somebody's developer machine before the 0.5.0 tag was created or their local repository was missing the tag: https://github.com/Optum/dce-cli/blob/3aa9d1b4db7284abb3d37d429a6ed6f64d9218cb/Makefile#L1

nelsonjchen avatar Jan 06 '21 08:01 nelsonjchen

My suggestion for this fix would be to make sure the builds that get uploaded to GitHub or whatever come from a CI/CD server that builds when a tag is pushed. Discipline that and this is closed.

nelsonjchen avatar Jan 30 '21 07:01 nelsonjchen