GitVersion: [Bug] Docker latest points to alpha

Our build scripts were using the :latest label in Docker to execute GitVersion with the following command

docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest /repo

Something has changed recently where that command no longer outputs the JSON response, but instead it’s printing out the visual tree of the repo. We’re hard coding back to 5.11.1 now to fix things, but I figured I’d report this. I don’t know what’s of more concern, if the default behavior is changing to this tree output, or that the latest is pointing at a pre-release version. Shouldn’t it point at the latest stable version?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

With the release of 5.12.0, the latest tag is again pointing to version 5.x.

In that case we can agree on setting :latest tag as latest stable. In that case the user of the :latest tag should be aware of the possibility of breaking changes in major versions. And as a recommendation is to use a specific version instead of the :latest. We need to update the readme on DockerHub with this recommendation. I will have to re publish the :latest tag with the 5.x version and remove those with :latest-6.0, and adapt the build scripts accordingly.

Ok then, I will remove the :latest tag from DockerHub, adapt the CI code, and update if needed the readme on DockerHub