-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DockerPlugin overwrites version #830
Comments
Can you provide a failing test as a pull request? |
How should I test this? Would a link to a GitHub project which shows this behavior also work? |
We have |
I can't reproduce this with the test project in native-packager. What I did First: Change the enablePlugins(JavaAppPackaging, DockerSpotifyClientPlugin)
name := "docker-test"
version := "0.1.0"
version in Docker := "latest"
maintainer := "Gary Coady <gary@lyranthe.org>" Second. Fire up sbt and |
All right, the issue might be related to using sbt-git with You can reproduce it with https://github.com/hseeberger/reactive-flows. |
Famous quote:
You have no |
Have you seen that I'm using versionWithGit? |
I wanted to say useGitDescribe, see project:Build.scala. |
Then there seems to be a conflict between these two plugins. Setting a concrete version works :/ |
All right, I have investigated the issue. sbt-native-packager (at least
sbt-git on the other hand sets the The workaround is setting the version accordingly: |
I think this is rather an issue of sbt-git by using the build settings rather than the project settings. Sorry for the noise! |
No problem 😉 |
If you define
version.in(Docker) := "latest"
, yourversion
will also be"latest"
:For some reason
version
delegates todocker:version
:The text was updated successfully, but these errors were encountered: