-
Notifications
You must be signed in to change notification settings - Fork 31
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
Proposal - add a timestamp to metadata of "uncommitted" versions #90
Comments
Alternatively the "uncommitted" suffix could become a timestamp instead. |
Seems worth considering. #86 is going to change the build metadata a little anyway, could change this at the same time. Part of the deal with that one was to keep the metadata short though. I could see a couple options for this:
I like dropping the commit hash, since you're in an uncommitted state anyway. However, this would also have to consider how Gradle sorts versions, which might mean we have to keep the hash. |
Instead of using the hash, if present, and the string 'uncomitted', use a UTC timestamp. Unique versions allow you to go back to a specific build more easily. This may make it harder to distinguish between commit builds and uncommitted builds, so I could see us adding some identifier back, but this keeps the versions shorter for now. This fixes #90.
That's great, thanks!
…On Wed, 4 Jul 2018 at 19:25, Andrew Oberstar ***@***.***> wrote:
Closed #90 <#90> via 0ff5198
<0ff5198>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#90 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABel_tylOg8fwaUy-J5rdY59MbiWn6Guks5uDQiigaJpZM4UpXKb>
.
|
Use case:
During development cycle I keep experimenting, re-building and re-running my service. I would like the created artifacts (Docker images in my case) to have unique versions, but without commiting every change.
Proposed solution:
Add an ISO 8601 timestamp to version metadata when repository is dirty in
reckon/reckon-core/src/main/java/org/ajoberstar/reckon/core/Reckoner.java
Line 122 in 0f980de
, e.g.:
0.1.0-beta.0.1+e06c68a863eb6ceaf889ee5802f478c10c1464bb.uncommitted.20180615T084953Z
It's fairly simple to implement, I can open a PR if you think it makes sense.
The text was updated successfully, but these errors were encountered: