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

Added date and commit SHA to the version command #1047

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

AnthonyAmanse
Copy link
Contributor

@AnthonyAmanse AnthonyAmanse commented Mar 27, 2019

This commit adds in a date and the head commit SHA. This makes it easy
for end-users to verify if their binary is indeed the latest one. The
date and git commit are also added in builds for release candidates.

Example:

./wskdeploy version
wskdeploy version: latest
wskdeploy git commit: 50aacbc7992720290f8a4a8696d2288d3c52a0e7
wskdeploy build date: 2019-03-28T20:41:05Z

Fixes: #1000

Signed-off-by: AnthonyAmanse ghieamanse@gmail.com

@AnthonyAmanse AnthonyAmanse force-pushed the dev-build branch 4 times, most recently from 0df99ea to 6ed605e Compare March 28, 2019 20:51
@AnthonyAmanse AnthonyAmanse changed the title Added date and commit SHA to latest version name Added date and commit SHA to the version command Mar 28, 2019
This commit adds in a date and the head commit SHA. This makes it easy
for end-users to verify if their binary is indeed the latest one. The
date and git commit are also added in builds for release candidates.

Example:
```
./wskdeploy version
wskdeploy version: latest
wskdeploy git commit: 50aacbc
wskdeploy build date: 2019-03-28T20:41:05Z
```

Signed-off-by: AnthonyAmanse <ghieamanse@gmail.com>
Copy link
Contributor

@mrutkows mrutkows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a welcome addition for developers that need this level of granularity; my only hesitation would be that Apache release process is quite ground in strict guidelines around versioning and do not want to promote use of daily/interim/developer builds. Wondering if we could gate display on the appearance of the Verbose flag in conjunction with the Version command? Would like a 2nd opinion before approving.

@mrutkows
Copy link
Contributor

mrutkows commented Apr 9, 2019

@pritidesai @jthomas any thoughts on my comments above before approval?

@mrutkows mrutkows self-assigned this Apr 9, 2019
Copy link
Contributor

@mrutkows mrutkows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve the changes. Would like to hear one more affirmation before merge.

@pritidesai
Copy link
Member

yup I agree with @mrutkows, I like the date but commit hash is too granular, how does this impact on the released binaries?

@houshengbo please weigh in your comments here.

@mrutkows
Copy link
Contributor

mrutkows commented Apr 10, 2019

@pritidesai @houshengbo Perhaps the most reasonable plan is to merge this and if anyone complains we can redact the display OR add extra logic to display on when --verbose is also provided. What do you think?

@houshengbo
Copy link

This PR looks good to me. Adding git commit hash and the date makes it more self-elaborated for a build.

@houshengbo houshengbo merged commit ed5d622 into apache:master Apr 10, 2019
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.

4 participants