- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestGOVCS (0.23 sec)
-
src/cmd/go/testdata/script/govcs.txt
env GOVCS='private:all,public:none' ! go get github.com/google/go-cmp stderr '^go: GOVCS disallows using git for public github.com/google/go-cmp; see ''go help vcs''$' # other patterns work (for more patterns, see TestGOVCS) env GOPRIVATE= env GOVCS='github.com:svn|hg' ! go get github.com/google/go-cmp stderr '^go: GOVCS disallows using git for public github.com/google/go-cmp; see ''go help vcs''$'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 14:41:02 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/go/script_test.go
// or they require our intercepted vcs-test.golang.org to regenerate the repository. // Require all tests that use VCS commands to be skipped in short mode. env = append(env, "TESTGOVCS=panic") } if os.Getenv("CGO_ENABLED") != "" || runtime.GOOS != goHostOS || runtime.GOARCH != goHostArch { // If the actual CGO_ENABLED might not match the cmd/go default, set it
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/codehost.go
if !ok { muIface, _ = dirLock.LoadOrStore(dir, new(sync.Mutex)) } mu := muIface.(*sync.Mutex) mu.Lock() defer mu.Unlock() } cmd := str.StringList(cmdline...) if os.Getenv("TESTGOVCS") == "panic" { panic(fmt.Sprintf("use of vcs: %v", cmd)) } if xLog, ok := cfg.BuildXWriter(ctx); ok { text := new(strings.Builder) if dir != "" { text.WriteString("cd ") text.WriteString(dir)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/go/internal/vcs/vcs_test.go
{"other.xyz/p:none,golang.org/x:all", "golang.org/y/text", "git", false}, {"other.xyz/p:none,golang.org/x:all", "golang.org/y/text", "zzz", false}, } func TestGOVCS(t *testing.T) { for _, tt := range govcsTests { cfg, err := parseGOVCS(tt.govcs) if err != nil { t.Errorf("parseGOVCS(%q): %v", tt.govcs, err) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 15:33:59 UTC 2022 - 17K bytes - Viewed (0) -
src/cmd/go/go_test.go
if tg.env == nil { tg.env = append([]string(nil), os.Environ()...) tg.env = append(tg.env, "GO111MODULE=off", "TESTGONETWORK=panic") if testing.Short() { tg.env = append(tg.env, "TESTGOVCS=panic") } } for i, v := range tg.env { if strings.HasPrefix(v, name+"=") { tg.env = append(tg.env[:i], tg.env[i+1:]...) break } } } func (tg *testgoData) goTool() 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)