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

change .dirty to -dirty #50

Closed

Conversation

derenrich
Copy link

This makes versions created by this plugin fully compatible with the SLS spec (I'd link but that repo is no longer public). This commit is a result of a discussion on the SLS spec.

Probably should bump the major version of this plugin after this commit since it could break people's workflows.

@ilyanep
Copy link

ilyanep commented Mar 13, 2017

+2 lgtm

@uschi2000
Copy link
Contributor

sgtm

@derenrich
Copy link
Author

who presses the merge button and cuts the release if not you?

@markelliot
Copy link
Contributor

markelliot commented Mar 14, 2017

Sorry, I'm confused, why do we want dirty versions to be valid versions in our deployability ecosystem?

@derenrich
Copy link
Author

derenrich commented Mar 14, 2017

This ticket is not asking for support for dirty versions. We already have support explicitly called out. See for example test cases in sls-packaging. The spec for the manifest specifically calls out dirty version strings as valid.

I have reasons for wanting this. They don't involve publishing. They involve local testing.

Currently this tool is incompatible with our other tools since it produces versions that are not valid SLS manifest specifications when it could otherwise easily avoid that.

@markelliot
Copy link
Contributor

markelliot commented Mar 14, 2017 via email

@derenrich
Copy link
Author

I really didn't want to go into this level of detail but ok here's the full story.

You are actually mistaken. sls-packaging allows versions that end in .dirty but only if that is proceeded by a dash. That is per the SLS spec (again there's a ticket where discussion occurred but I can't link to it). If you use this gradle plugin and are exactly on a tag then the version string will be 1.2.3.dirty and so there won't be a dash before the .dirty and so the version is invalid. That is why I am making this change.

Also the manifest spec does allow these version? They are unordered versions which I understand are allowed. They are explicitly mentioned in the spec as valid.

@uschi2000
Copy link
Contributor

Dan, we can change the non-orderable format to something like \d+\.\d+\.\d+(-[a-z0-9-.]*)?(\.dirty)?

@uschi2000
Copy link
Contributor

@uschi2000 uschi2000 closed this Mar 14, 2017
@derenrich
Copy link
Author

Ok but then the sls-packaging gradle plugin will no longer actually be compatible with the actual spec? Or are you proposing changing the SLS spec also?

@uschi2000
Copy link
Contributor

uschi2000 commented Mar 14, 2017 via email

@derenrich
Copy link
Author

Just FYI. I started this journey at the spec asking it to be changed. It was suggested this was the easier change.

@markelliot
Copy link
Contributor

markelliot commented Mar 14, 2017 via email

@derenrich
Copy link
Author

Ok. Maybe you can convince them better than I.

@derenrich derenrich deleted the derenrich/change-dirty-style branch March 14, 2017 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants