semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
25 stars 13 forks source link

sem-version fails to parse the correct version when suffixed with 0 #218

Closed rushi47 closed 1 year ago

rushi47 commented 1 year ago

Hello team 👋 ,

Not sure if this is issue or i am configuring something wrong but I noticed that when i call the sem-version command with language version suffixed with 0 somehow it fails to parse it. Ex. If i configure

  prologue:
    commands:
      - sem-version go 1.20

It actually parses it as just 1.2 making the command to fail. I am not sure if this has been addressed before but on looking it up I was unable to find anything. Thank you

rushi47 commented 1 year ago

EDIT : it was internal issue, where it was failing to parse the version. Closing it, apologies.