Deprecate prepare subcommand to minimize the root authority #375
This commit is contained in:
@@ -95,7 +95,7 @@ func URLPathParamJoin(baseURL string, paths []string, params map[string]string)
|
||||
|
||||
// ProxyEnv returns shell environment variables to set proxy
|
||||
func ProxyEnv() string {
|
||||
httpProxyEnv := "env"
|
||||
httpProxyEnv := ""
|
||||
keys := []string{
|
||||
"http_proxy",
|
||||
"https_proxy",
|
||||
|
||||
@@ -105,14 +105,14 @@ func TestPrependHTTPProxyEnv(t *testing.T) {
|
||||
"http://proxy.co.jp:8080",
|
||||
"yum check-update",
|
||||
},
|
||||
`env http_proxy="http://proxy.co.jp:8080" https_proxy="http://proxy.co.jp:8080" HTTP_PROXY="http://proxy.co.jp:8080" HTTPS_PROXY="http://proxy.co.jp:8080" yum check-update`,
|
||||
` http_proxy="http://proxy.co.jp:8080" https_proxy="http://proxy.co.jp:8080" HTTP_PROXY="http://proxy.co.jp:8080" HTTPS_PROXY="http://proxy.co.jp:8080" yum check-update`,
|
||||
},
|
||||
{
|
||||
[]string{
|
||||
"http://proxy.co.jp:8080",
|
||||
"",
|
||||
},
|
||||
`env http_proxy="http://proxy.co.jp:8080" https_proxy="http://proxy.co.jp:8080" HTTP_PROXY="http://proxy.co.jp:8080" HTTPS_PROXY="http://proxy.co.jp:8080" `,
|
||||
` http_proxy="http://proxy.co.jp:8080" https_proxy="http://proxy.co.jp:8080" HTTP_PROXY="http://proxy.co.jp:8080" HTTPS_PROXY="http://proxy.co.jp:8080" `,
|
||||
},
|
||||
{
|
||||
[]string{
|
||||
|
||||
Reference in New Issue
Block a user