From 42e0f0ed655e560bcd74c3a93baaeccae054d444 Mon Sep 17 00:00:00 2001 From: Nathanael Liechti Date: Tue, 17 Dec 2024 20:21:41 +0100 Subject: [PATCH] fix(cli): wrong variable to store --no-proxy value Signed-off-by: Nathanael Liechti --- cmd/util/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/util/repo.go b/cmd/util/repo.go index 6b822c6309f70..d87d42836725f 100644 --- a/cmd/util/repo.go +++ b/cmd/util/repo.go @@ -45,7 +45,7 @@ func AddRepoFlags(command *cobra.Command, opts *RepoOptions) { command.Flags().StringVar(&opts.GithubAppPrivateKeyPath, "github-app-private-key-path", "", "private key of the GitHub Application") command.Flags().StringVar(&opts.GitHubAppEnterpriseBaseURL, "github-app-enterprise-base-url", "", "base url to use when using GitHub Enterprise (e.g. https://ghe.example.com/api/v3") command.Flags().StringVar(&opts.Proxy, "proxy", "", "use proxy to access repository") - command.Flags().StringVar(&opts.Proxy, "no-proxy", "", "don't access these targets via proxy") + command.Flags().StringVar(&opts.NoProxy, "no-proxy", "", "don't access these targets via proxy") command.Flags().StringVar(&opts.GCPServiceAccountKeyPath, "gcp-service-account-key-path", "", "service account key for the Google Cloud Platform") command.Flags().BoolVar(&opts.ForceHttpBasicAuth, "force-http-basic-auth", false, "whether to force use of basic auth when connecting repository via HTTP") }