mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
fix(version): change development version naming to avoid breaking some clients
Some Miniflux clients expect a specific version format. For example, Flux News converts the string version to an integer. Using `Development Version` will break some clients.
This commit is contained in:
parent
f6532e16f2
commit
9536ce7dbc
3 changed files with 7 additions and 4 deletions
|
@ -43,7 +43,9 @@ func getBuildDate() string {
|
|||
// Falls back to values from the Go module's build info when available.
|
||||
func init() {
|
||||
if Version == "" {
|
||||
Version = "Development Version"
|
||||
// Some Miniflux clients expect a specific version format.
|
||||
// For example, Flux News converts the string version to an integer.
|
||||
Version = "2.2.x-dev"
|
||||
}
|
||||
if Commit == "" {
|
||||
Commit = getCommit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue