mirror of
https://github.com/go-task/task.git
synced 2025-05-27 23:08:16 +02:00
fix: experiments validation should happen before command flags are evaluated
This commit is contained in:
parent
669bf33619
commit
38b42d0fb1
@ -56,6 +56,10 @@ func run() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := experiments.Validate(); err != nil {
|
||||||
|
log.Warnf("%s\n", err.Error())
|
||||||
|
}
|
||||||
|
|
||||||
if flags.Version {
|
if flags.Version {
|
||||||
fmt.Println(version.GetVersionWithBuildInfo())
|
fmt.Println(version.GetVersionWithBuildInfo())
|
||||||
return nil
|
return nil
|
||||||
@ -109,10 +113,6 @@ func run() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := experiments.Validate(); err != nil {
|
|
||||||
log.Warnf("%s\n", err.Error())
|
|
||||||
}
|
|
||||||
|
|
||||||
e := task.NewExecutor(
|
e := task.NewExecutor(
|
||||||
flags.WithFlags(),
|
flags.WithFlags(),
|
||||||
task.WithVersionCheck(true),
|
task.WithVersionCheck(true),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user