Optum / dce-cli

Disposable Cloud Environment CLI
Apache License 2.0
37 stars 19 forks source link

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

Open gundkalneha opened 4 years ago

gundkalneha commented 4 years ago

Version

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

nelsonjchen commented 3 years ago

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 commented 3 years ago

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.