mirror of
https://github.com/go-task/task.git
synced 2025-04-18 12:04:04 +03: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
|
||||
}
|
||||
|
||||
if err := experiments.Validate(); err != nil {
|
||||
log.Warnf("%s\n", err.Error())
|
||||
}
|
||||
|
||||
if flags.Version {
|
||||
fmt.Println(version.GetVersionWithBuildInfo())
|
||||
return nil
|
||||
@ -109,10 +113,6 @@ func run() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := experiments.Validate(); err != nil {
|
||||
log.Warnf("%s\n", err.Error())
|
||||
}
|
||||
|
||||
e := task.NewExecutor(
|
||||
flags.WithFlags(),
|
||||
task.WithVersionCheck(true),
|
||||
|
Loading…
x
Reference in New Issue
Block a user