When building with docker, the versionInfo item shows the git sha with a trailing + indicating that the git HEAD status is dirty.
I think this is because of the difference between .gitignore and .dockerignore files: some files that are included in the git repo are not copied over to the docker build container. During the build stage when the git info is embedded in the executable, git therefore thinks there are pending uncommitted changes in the workspace.
When building with docker, the
versionInfo
item shows the git sha with a trailing+
indicating that the git HEAD status is dirty.I think this is because of the difference between
.gitignore
and.dockerignore
files: some files that are included in the git repo are not copied over to the docker build container. During the build stage when the git info is embedded in the executable, git therefore thinks there are pending uncommitted changes in the workspace.