Skip to content
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

when project version is a SNAPSHOT, rpm:packageBin fails with "version in Rpm is empty." #1004

Closed
colin-lamed opened this issue Jun 29, 2017 · 3 comments

Comments

@colin-lamed
Copy link

Expected behaviour

When version is a snapshot, and version in Rpm has been explicitly set (to a value without a -SNAPSHOT suffix), e.g
build.sbt

version := "0.0.1-SNAPSHOT"
version in Rpm := "1"

, the resulting rpm should have the version as set in version in Rpm.

Actual behaviour

Build fails with error

`version in Rpm` is empty.  Please provide a vaid version for the rpm SPEC.
java.lang.RuntimeException: There are issues with the rpm spec data.

Information

  • What sbt-native-packager are you using
    1.2.0
    (worked in 1.2.0-M9)
  • What sbt version
    0.13.15
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
    CentOS 6
  • What package are you building (e.g. docker, rpm, ...)
    rpm
  • What version has your build tool (find out with e.g. rpm --version)
    RPM version 4.8.0
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7)
    CentOS 6
colin-lamed pushed a commit to colin-lamed/sbt-native-packager that referenced this issue Jun 29, 2017
@vpavkin
Copy link

vpavkin commented Jul 6, 2017

I got the same on 1.2.0-M9 after switching from scala 2.11 to scala 2.12.

@vpavkin
Copy link

vpavkin commented Jul 6, 2017

hm, seems like sbt unconditionnaly resolves 1.2.0 for me, even when I specify milestone version.

@muuki88
Copy link
Contributor

muuki88 commented Nov 1, 2017

Fixed in mentioned PR (#1005)

@muuki88 muuki88 closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants