Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GIT_ALLOW_PROTOCOL (0.21 sec)

  1. src/cmd/go/testdata/script/get_issue53955.txt

    exec git config --global --show-origin user.name
    stdout 'Go Gopher'
    
    # Inject a local repo in place of a remote one, so that we can
    # add commits to the repo partway through the test.
    env GIT_ALLOW_PROTOCOL=file
    env GOPRIVATE=github.com/golang/issue53955
    
    [!GOOS:windows] exec git config --global 'url.file://'$WORK'/repo.insteadOf' 'https://github.com/golang/issue53955'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 16:37:00 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/vcs/vcs_test.go

    		{vcsHg, "foo://example.com/bar.hg", false},
    		{vcsSvn, "foo://example.com/svn", false},
    		{vcsBzr, "foo://example.com/bar.bzr", false},
    	}
    
    	defer os.Unsetenv("GIT_ALLOW_PROTOCOL")
    	os.Setenv("GIT_ALLOW_PROTOCOL", "https:foo")
    	for _, test := range tests {
    		secure := test.vcs.IsSecure(test.url)
    		if secure != test.secure {
    			t.Errorf("%s isSecure(%q) = %t; want %t", test.vcs, test.url, secure, test.secure)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 15:33:59 UTC 2022
    - 17K bytes
    - Viewed (0)
  3. src/cmd/go/internal/help/helpdoc.go

    download tries https://, then git+ssh://.
    
    By default, downloads are restricted to known secure protocols
    (e.g. https, ssh). To override this setting for Git downloads, the
    GIT_ALLOW_PROTOCOL environment variable can be set (For more details see:
    'go help environment').
    
    If the import path is not a known code hosting site and also lacks a
    version control qualifier, the go tool attempts to fetch the import
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vcs/vcs.go

    }
    
    func (v *Cmd) isSecureScheme(scheme string) bool {
    	switch v.Cmd {
    	case "git":
    		// GIT_ALLOW_PROTOCOL is an environment variable defined by Git. It is a
    		// colon-separated list of schemes that are allowed to be used with git
    		// fetch/clone. Any scheme not mentioned will be considered insecure.
    		if allow := os.Getenv("GIT_ALLOW_PROTOCOL"); allow != "" {
    			for _, s := range strings.Split(allow, ":") {
    				if s == scheme {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  5. src/cmd/go/alldocs.go

    //	GO_EXTLINK_ENABLED
    //		Whether the linker should use external linking mode
    //		when using -linkmode=auto with code that uses cgo.
    //		Set to 0 to disable external linking mode, 1 to enable it.
    //	GIT_ALLOW_PROTOCOL
    //		Defined by Git. A colon-separated list of schemes that are allowed
    //		to be used with git fetch/clone. If set, any scheme not explicitly
    //		mentioned will be considered insecure by 'go get'.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    	}
    
    	// Don't let these environment variables confuse the test.
    	os.Setenv("GOENV", "off")
    	os.Unsetenv("GOFLAGS")
    	os.Unsetenv("GOBIN")
    	os.Unsetenv("GOPATH")
    	os.Unsetenv("GIT_ALLOW_PROTOCOL")
    	os.Setenv("HOME", "/test-go-home-does-not-exist")
    	// On some systems the default C compiler is ccache.
    	// Setting HOME to a non-existent directory will break
    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