Update check runs with every execution. Update fdw version #304

This commit is contained in:
kai
2021-03-17 20:46:45 +00:00
parent 32ea7b46b4
commit c0f3dafe2c
3 changed files with 6 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ func InitCmd() {
AddCommands()
// the `OnInitialize` callbacks are called right before PreRun
cobra.OnInitialize(initGlobalConfig, createLogger, task.NewRunner().Run)
cobra.OnInitialize(initGlobalConfig, createLogger, task.RunTasks)
}
// initConfig reads in config file and ENV variables if set.

View File

@@ -19,7 +19,7 @@ const (
// constants for installing db and fdw images
const (
DatabaseVersion = "12.1.0"
FdwVersion = "0.0.27-rc.1"
FdwVersion = "0.0.27-rc.2"
// The 12.1.0 image uses the older jar format 12.1.0-v2 is the same version of postgres,
// just packaged as gzipped tar files (consistent with oras, faster to unzip). Once everyone is

View File

@@ -15,6 +15,10 @@ type Runner struct {
shouldRun bool
}
func RunTasks() {
NewRunner().Run()
}
func NewRunner() *Runner {
r := new(Runner)
r.currentState, _ = statefile.LoadState()