Open tebesfinwo opened 5 years ago
The reason is the function responsible for getting a version tag based on the existing files: it checks for any known VCS, and as a fallback uses current timestamp, which is obviously different for different commands. There's an easy work-around if you don't want to use any VCS - you can provide a version via setup.py file, or pass it explicitly for each command, this will work as expected:
$ shub image build foo -V version
$ shub image upload foo -V version # or --version version
However, I must admit it's still a bug, I'd expect shub image upload
to use the same version within all its sub-commands.
@vshlapakov Thanks for the explanation and workaround. 👍
If
shub image push
without an explicit versioning in a non Git intialized directory,shub
fails to find the previously built image because I believed that it used the wrong version as shown in the following output.