Skip to content

Generate same value of AppVersion regardless of where revel is run #108

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

Merged
merged 1 commit into from
Jan 30, 2018
Merged

Generate same value of AppVersion regardless of where revel is run #108

merged 1 commit into from
Jan 30, 2018

Conversation

rokeller
Copy link
Contributor

Explicitly set the --work-tree path for the git command when retrieving the commit hash, to avoid always getting the '-dirty' suffix added to the AppVersion when revel is not run in the the app base directory. Use the revel.BasePath property to let git know which work tree to use.

gofmt causes more changes (line 42). The relevant changes however are restricted to line 213.

…ork trees regardless of where revel is run from.
@notzippy notzippy added this to the v0.19 milestone Jan 16, 2018
@notzippy notzippy merged commit 0583fe7 into revel:develop Jan 30, 2018
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.

2 participants