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

strip snapshot suffix safely (#1004) #1005

Merged
merged 1 commit into from
Jul 9, 2017
Merged

Conversation

colin-lamed
Copy link
Contributor

@colin-lamed colin-lamed commented Jun 29, 2017

Related issue: #1004

@lightbend-cla-validator

Hi @colin-passiv,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@muuki88 muuki88 added the rpm label Jul 1, 2017
@muuki88
Copy link
Contributor

muuki88 commented Jul 1, 2017

@colin-passiv thanks a lot for your pull request :)

What was the problem you encountered with the current implementation? I like your change as it removes code and uses native method instead of doing string manipulation on our own. +1 for the tests, but I'm not quite sure what regression they show.

@colin-lamed
Copy link
Contributor Author

colin-lamed commented Jul 4, 2017 via email

@vpavkin
Copy link

vpavkin commented Jul 6, 2017

+1, have the same issue. #971 was a breaking change for those who used custom rpm version for snapshot builds.

Also for some reason I can't rollback to 1.2.0-M9, because sbt always resolves 1.2.0 for any milestone version (1.2.0-M*).

@vpavkin
Copy link

vpavkin commented Jul 6, 2017

managed to workaround with this setting:

rpmMetadata := rpmMetadata.value.copy(
    version = (version in Rpm).value.stripSuffix("-SNAPSHOT")
)

@muuki88 muuki88 merged commit b2586c6 into sbt:master Jul 9, 2017
@dpennell
Copy link
Contributor

dpennell commented Aug 5, 2017

This version in 1.2.0 also breaks when isSnapshot is true and the version does not contain '-SNAPSHOT', as is the case when you use the sbt-dynver plugin. This plugin appears to be gaining some traction, so it might be reasonable to release a version with this PR.

@vpavkin Thanks for the workaround - I didn't realize that rpmMetadata was exposed as a setting.

@muuki88
Copy link
Contributor

muuki88 commented Aug 5, 2017

Hi @dpennell :) great to see you back here.

I'll try to release ASAP.

@muuki88
Copy link
Contributor

muuki88 commented Aug 5, 2017

1.2.1 released

@dpennell
Copy link
Contributor

dpennell commented Aug 5, 2017

@muuki88 Thanks! Nice to be back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants