mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
New version format: * for releases, `x.y.z` (follows tag without leading `v`) * for nightly builds, `x.y.z+N+hash` (previous version, not the upcoming one) This means that each nightly build `aptly` would report correct version now. Version is now complied into the aptly binary, system tests automatically check for current version, no need to update them anymore.
22 lines
303 B
Go
22 lines
303 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/smira/aptly/aptly"
|
|
"github.com/smira/aptly/cmd"
|
|
)
|
|
|
|
// Version variable, filled in at link time
|
|
var Version string
|
|
|
|
func main() {
|
|
if Version == "" {
|
|
Version = "unknown"
|
|
}
|
|
|
|
aptly.Version = Version
|
|
|
|
os.Exit(cmd.Run(cmd.RootCommand(), os.Args[1:], true))
|
|
}
|