Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for homeEnvName (0.31 sec)

  1. src/cmd/go/internal/vcweb/script.go

    			"GIT_TRACE_CURL=1",
    			"GIT_TRACE_CURL_NO_DATA=1",
    			"GIT_REDACT_COOKIES=o,SSO,GSSO_Uberproxy")
    	}
    
    	return env
    }
    
    // homeEnvName returns the environment variable used by os.UserHomeDir
    // to locate the user's home directory.
    func homeEnvName() string {
    	switch runtime.GOOS {
    	case "windows":
    		return "USERPROFILE"
    	case "plan9":
    		return "home"
    	default:
    		return "HOME"
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 9K bytes
    - Viewed (0)
  2. src/cmd/go/script_test.go

    	}
    	httpsURL, err := url.Parse(srv.HTTPS.URL)
    	if err != nil {
    		return nil, err
    	}
    	env := []string{
    		pathEnvName() + "=" + testBin + string(filepath.ListSeparator) + os.Getenv(pathEnvName()),
    		homeEnvName() + "=/no-home",
    		"CCACHE_DISABLE=1", // ccache breaks with non-existent HOME
    		"GOARCH=" + runtime.GOARCH,
    		"TESTGO_GOHOSTARCH=" + goHostArch,
    		"GOCACHE=" + testGOCACHE,
    		"GOCOVERDIR=" + os.Getenv("GOCOVERDIR"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/go/go_test.go

    	if tg.grepCountBoth(regexp.QuoteMeta(filepath.Join("testdata", "b", "src", "foo", "quxx"))+`$`) != 1 {
    		t.Error(`go install foo/quxx expected error: .*testdata/b/src/foo/quxx`)
    	}
    }
    
    func homeEnvName() string {
    	switch runtime.GOOS {
    	case "windows":
    		return "USERPROFILE"
    	case "plan9":
    		return "home"
    	default:
    		return "HOME"
    	}
    }
    
    func tempEnvName() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top