Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,219 for syserr (0.12 sec)

  1. src/cmd/go/internal/modfetch/codehost/shell.go

    			}
    			if len(f) > 2 {
    				fmt.Fprintf(os.Stderr, "?usage: tags [prefix]\n")
    				continue
    			}
    			tags, err := repo.Tags(prefix)
    			if err != nil {
    				fmt.Fprintf(os.Stderr, "?%s\n", err)
    				continue
    			}
    			for _, tag := range tags {
    				fmt.Printf("%s\n", tag)
    			}
    
    		case "stat":
    			if len(f) != 2 {
    				fmt.Fprintf(os.Stderr, "?usage: stat rev\n")
    				continue
    			}
    			info, err := repo.Stat(f[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_get_toolchain.txt

    stderr '^go: added toolchain go1.999testmod$'
    grep 'go 1.21' go.mod
    grep 'toolchain go1.999testmod' go.mod
    
    # Bug fixes.
    
    # go get go@garbage should fail but not crash
    ! go get go@garbage
    ! stderr panic
    stderr '^go: invalid go version garbage$'
    
    # go get go@go1.21.0 is OK - we silently correct to 1.21.0
    go get go@1.19
    go get go@go1.21.0
    stderr '^go: upgraded go 1.19 => 1.21.0'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 19:33:16 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_issue6480.txt

    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if err := json.Unmarshal(b1, &t1); err != nil  {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    
    	var t2 time.Time
    	b2, err := os.ReadFile(os.Args[2])
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if err := json.Unmarshal(b2, &t2); err != nil  {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/goflags.txt

    stderr '^go: parsing \$GOFLAGS: non-flag "--"'
    
    env GOFLAGS=---oops
    ! go list runtime
    stderr '^go: parsing \$GOFLAGS: non-flag "---oops"'
    
    env GOFLAGS=-=noname
    ! go list runtime
    stderr '^go: parsing \$GOFLAGS: non-flag "-=noname"'
    
    env GOFLAGS=-f
    ! go list runtime
    stderr '^go: flag needs an argument: -f \(from (\$GOFLAGS|%GOFLAGS%)\)$'
    
    env GOFLAGS=-e=asdf
    ! go list runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:47:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_bad_domain.txt

    # explicit get should report errors about bad names
    ! go get appengine
    stderr '^go: malformed module path "appengine": missing dot in first path element$'
    ! go get x/y.z
    stderr 'malformed module path "x/y.z": missing dot in first path element'
    
    
    # 'go list -m' should report errors about module names, never GOROOT.
    ! go list -m -versions appengine
    stderr 'malformed module path "appengine": missing dot in first path element'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/gotoolchain_net.txt

    env GOTOOLCHAIN=go1.9999x
    ! go version
    stderr 'go: download go1.9999x for .*: toolchain not available'
    
    # GOTOOLCHAIN from network
    [!exec:/bin/sh] stop 'the fake proxy serves shell scripts instead of binaries'
    env GOTOOLCHAIN=go1.999testmod
    go version
    stderr 'go: downloading go1.999testmod \(.*/.*\)'
    
    # GOTOOLCHAIN cached from network
    go version
    ! stderr downloading
    stdout go1.999testmod
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 17:16:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/chdir.txt

    go list -C ../strings
    stdout strings
    ! go list -C ../nonexist
    stderr 'chdir.*nonexist'
    
    # check for -C in subcommands with custom flag parsing
    # cmd/go/chdir_test.go handles the normal ones more directly.
    
    # go doc
    go doc -C ../strings HasPrefix
    
    # go env
    go env -C $OLD/custom GOMOD
    stdout 'custom[\\/]go.mod'
    ! go env -C ../nonexist
    stderr '^go: chdir ../nonexist: '
    
    # go test
    go test -C ../strings -n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:23:42 UTC 2023
    - 744 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cgo_bad_directives.txt

    # Only allow //go:cgo_ldflag .* in cgo-generated code
    [compiler:gc] cp x_gc.go.txt x.go
    [compiler:gc] ! go build x
    [compiler:gc] stderr '//go:cgo_ldflag .* only allowed in cgo-generated code'
    
    # Ignore _* files
    rm x.go
    ! go build .
    stderr 'no Go files'
    cp cgo_yy.go.txt _cgo_yy.go
    ! go build .
    stderr 'no Go files' #_* files are ignored...
    
    [compiler:gc] ! go build _cgo_yy.go # ... but if forced, the comment is rejected
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/goroot_executable.txt

    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "%s env GOROOT: %v, %s\n", exe, err, out)
    		os.Exit(1)
    	}
    	goroot, err := filepath.EvalSymlinks(strings.TrimSpace(string(out)))
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	want, err = filepath.EvalSymlinks(want)
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if !strings.EqualFold(goroot, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/mod_bad_filenames.txt

    ! go get rsc.io/badfile1 rsc.io/badfile2 rsc.io/badfile3 rsc.io/badfile4 rsc.io/badfile5
    ! stderr 'unzip.*badfile1'
    stderr 'unzip.*badfile2[\\/]@v[\\/]v1.0.0.zip:.*malformed file path "☺.go": invalid char ''☺'''
    stderr 'unzip.*badfile3[\\/]@v[\\/]v1.0.0.zip: rsc.io[\\/]badfile3@v1.0.0[\\/]x\?y.go: malformed file path "x\?y.go": invalid char ''\?'''
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 01 17:38:07 UTC 2020
    - 708 bytes
    - Viewed (0)
Back to top