-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Autogenerate Version on build #190
Changes from all commits
61ea91e
3861150
c4eb96e
0cf782b
49200cc
e8b92b6
921c627
016de4d
d8b0115
5b15952
c3a01a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ import ( | |
) | ||
|
||
// Version holds the current Gitea version | ||
const Version = "0.9.99.0915" | ||
var Version = "1.0.0+dev" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can either generate it, OR set it, otherwise generating it is pointless There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I do in other projects is always set the target version for each branch (ie: |
||
|
||
func init() { | ||
runtime.GOMAXPROCS(runtime.NumCPU()) | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicking, you should be able to group the sed calls:
sed 's/^v//;s/-/+/'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@strk that depends entirely on the version of
sed
unfortunately... FreeBSD for example doesn't handle that 😒There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just keep it like it is. The
v
replacement can even be done with plain bash ;)