Go: fix env variables (#18032)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-10 14:37:05 +08:00
committed by GitHub
parent c0582b8e18
commit c0bc146fcb
24 changed files with 774 additions and 95 deletions

View File

@@ -80,10 +80,10 @@ func (a *sourceHTTPClientAdapter) Get(url string) (*http.Response, error) {
// NewInstallSkillCommand creates a new install-skill command handler
func NewInstallSkillCommand(client HTTPClientInterface, fileProvider *FileProvider, skillProvider Provider) *SkillInstallCommand {
// Log proxy settings
if httpProxy := common.GetEnv(common.EnvHttpHTTPProxy); httpProxy != "" {
if httpProxy := common.GetEnv(common.EnvHTTPProxy); httpProxy != "" {
fmt.Printf("Using HTTP proxy: %s\n", httpProxy)
}
if httpsProxy := common.GetEnv(common.EnvHttpHTTPSProxy); httpsProxy != "" {
if httpsProxy := common.GetEnv(common.EnvHTTPSProxy); httpsProxy != "" {
fmt.Printf("Using HTTPS proxy: %s\n", httpsProxy)
}