Skip to content

Commit

Permalink
fix azure-dev cli build error
Browse files Browse the repository at this point in the history
  • Loading branch information
v-jiaodi committed Sep 14, 2023
1 parent c55c60c commit 7268f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/azd/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
)

var userConfigPath string
var defaultConfigPath string

// Setup account command category
func configActions(root *actions.ActionDescriptor, rootOptions *internal.GlobalCommandOptions) *actions.ActionDescriptor {
Expand All @@ -39,6 +38,7 @@ func configActions(root *actions.ActionDescriptor, rootOptions *internal.GlobalC
userConfigPath = output.WithBackticks(filepath.Join(userConfigDir, "config.json"))
}

var defaultConfigPath string
if runtime.GOOS == "windows" {
defaultConfigPath = filepath.Join("%USERPROFILE%", ".azd")
} else {
Expand Down Expand Up @@ -386,10 +386,10 @@ func getCmdConfigHelpDescription(*cobra.Command) string {
output.WithHighLightFormat("azd init"),
)),
formatHelpNote(fmt.Sprintf("The subscription and location you select will be stored at: %s.",
userConfigPath,
output.WithLinkFormat("%HOME/.azd/config.json"),
)),
formatHelpNote(fmt.Sprintf("The default configuration path is: %s.",
output.WithBackticks(defaultConfigPath),
output.WithLinkFormat("%HOME/.azd"),
)),
formatHelpNote(fmt.Sprintf("The configuration directory can be overridden by specifying a path" +
" in the AZD_CONFIG_DIR environment variable.",
Expand Down

0 comments on commit 7268f30

Please sign in to comment.