Skip to content

Commit

Permalink
DEVPROD-5918 Add log when using local tasks for patch (#7914)
Browse files Browse the repository at this point in the history
  • Loading branch information
bynn committed May 23, 2024
1 parent a508753 commit aa5a613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (

// ClientVersion is the commandline version string used to control updating
// the CLI. The format is the calendar date (YYYY-MM-DD).
ClientVersion = "2024-05-17"
ClientVersion = "2024-05-23"

// Agent version to control agent rollover. The format is the calendar date
// (YYYY-MM-DD).
Expand Down
4 changes: 4 additions & 0 deletions operations/patch_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ func (p *patchParams) loadAlias(conf *ClientSettings) error {
} else if len(p.Variants) == 0 || len(p.Tasks) == 0 {
// No --alias or variant/task pair was passed, use the default
p.Alias = conf.FindDefaultAlias(p.Project)
grip.InfoWhen(p.Alias != "", "Using default alias set in local config")
}

return nil
Expand All @@ -413,6 +414,7 @@ func (p *patchParams) loadVariants(conf *ClientSettings) error {
}
} else if p.Alias == "" && !p.isUsingLocalAlias {
p.Variants = conf.FindDefaultVariants(p.Project)
grip.InfoWhen(len(p.Variants) > 0, "Using default variants set in local config")
}

return nil
Expand Down Expand Up @@ -456,6 +458,8 @@ func (p *patchParams) loadTasks(conf *ClientSettings) error {
}
} else if p.Alias == "" && !p.isUsingLocalAlias {
p.Tasks = conf.FindDefaultTasks(p.Project)
grip.InfoWhen(len(p.Tasks) > 0, "Using default tasks set in local config")

}

return nil
Expand Down

0 comments on commit aa5a613

Please sign in to comment.