Innoactive/Portal-Python-CLI

innoactive-portal upload-client fails if binary exists already

Closed this issue · 2 comments

klyse commented

Steps to reproduce:

  1. innoactive-portal upload-client {....}
  2. For some reason the set_version_as_current fails (https://github.com/Innoactive/Portal-Backend-Python-Client/pull/1/files)
  3. innoactive-portal upload-client {....} fails with exception:
    Version 4.3.4 already existing! Aborting.

Expected behaviour:

Either we replace the version & silently ignore the command (opt-in) or we fail but offer a way to just set the latest version.

Not sure this has anything to do with the binary. The client with version 4.3.4 exists already and you can't change it once it has been uploaded. And you also can't recreate version 4.3.4 without deleting it previously. I guess the only issue here is / was that set_version_as_current wasn't working?