Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 373 for command (1.12 sec)

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

    module test
    
    go 1.17
    -- which cc/which cc.go --
    package main
    
    import (
    	"fmt"
    	"os"
    	"os/exec"
    )
    
    func main() {
    	args := append([]string{"-DWRAPPER_WAS_USED=1"}, os.Args[2:]...)
    	cmd := exec.Command(os.Args[1], args...)
    	cmd.Stdout = os.Stdout
    	cmd.Stderr = os.Stderr
    	if err := cmd.Run(); err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    }
    -- hello.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 16 20:23:26 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_convert_git.txt

    # However, we should suggest 'go mod init' if we can find an alternate config file.
    cd $WORK/test/x
    ! go list .
    stderr 'found .git/config in .*[/\\]test'
    stderr '\s*cd \.\. && go mod init'
    
    # The command we suggested should succeed.
    cd ..
    go mod init
    go list -m all
    stdout '^m$'
    
    # We should not suggest creating a go.mod file in $GOROOT, even though there may be a .git/config there.
    cd $GOROOT
    ! go list .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 13 20:43:12 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_gobuild_import.txt

    [short] skip
    
    # go/build's Import should find modules by invoking the go command
    
    go build -o $WORK ./testimport ./testfindonly
    
    # GO111MODULE=off
    env GO111MODULE=off
    ! exec $WORK/testimport$GOEXE gobuild.example.com/x/y/z/w .
    
    # GO111MODULE=auto in GOPATH/src
    env GO111MODULE=auto
    exec $WORK/testimport$GOEXE gobuild.example.com/x/y/z/w .
    
    # GO111MODULE=auto outside GOPATH/src
    cd $GOPATH/other
    env GO111MODULE=auto
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/gcflags_patterns.txt

    go test -a -c -n -gcflags=z1=-N -ldflags=z1=-X=x.y=z z1
    stderr 'compile.* -N .*z_test.go'
    stderr 'link.* -X=x.y=z'
    
    # -ldflags applies to link of command
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to link of command even with strange directory name
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog/
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_script_cmdcd.txt

    # Tests that after a cd command, where usually the UNIX path separator is used,
    # a match against $PWD does not fail on Windows.
    
    cd $WORK/a/b/c/pkg
    
    go list -find -f {{.Root}}
    stdout $PWD
    
    -- $WORK/a/b/c/pkg/go.mod --
    module pkg
    
    -- $WORK/a/b/c/pkg/pkg.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 14 15:35:28 UTC 2021
    - 272 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_get_lazy_indirect.txt

    # 'go list' suggests that we run 'go get' on that dependency.
    
    ! go list -deps .
    stderr '^m.go:3:8: no required module provides package rsc\.io/quote; to add it:\n\tgo get rsc.io/quote$'
    
    
    # When we run the suggested 'go get' command, the new dependency can be used
    # immediately.
    #
    # 'go get' marks the new dependency as 'indirect', because it doesn't scan
    # enough source code to know whether it is direct, and it is easier and less
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 17 19:52:18 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/work_regression_hang.txt

    # This test makes checks against a regression of a bug in the Go command
    # where the module loader hung forever because all main module dependencies
    # kept workspace pruning instead of adopting the pruning in their go.mod
    # files, and the loader kept adding dependencies on the queue until they
    # were either pruned or unpruned, never breaking a module dependency cycle.
    #
    # This is the module graph in the test:
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 08 17:48:45 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cache_vet.txt

    env GOCACHE=$WORK/cache
    
    # Run 'go vet os/user' once to warm up the cache.
    go vet os/user
    
    # Check that second vet reuses cgo-derived inputs.
    # The first command could be build instead of vet,
    # except that if the cache is empty and there's a net.a
    # in GOROOT/pkg, the build will not bother to regenerate
    # and cache the cgo outputs, whereas vet always will.
    
    go vet -x os/user
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 721 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_get_issue47979.txt

    # Regression test for https://golang.org/issue/47979:
    #
    # An argument to 'go get' that results in an upgrade to a different existing
    # root should be allowed, and should not panic the 'go' command.
    
    cp go.mod go.mod.orig
    
    
    # Transitive upgrades from upgraded roots should not prevent
    # 'go get -u' from performing upgrades.
    
    cp go.mod.orig go.mod
    go get -u .
    cmp go.mod go.mod.want
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_timeout_stdin.txt

    			if err != nil {
    				os.Exit(1)
    			}
    		}
    	}
    
    	m.Run()
    }
    
    func TestOrphanCmd(t *testing.T) {
    	exe, err := os.Executable()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	cmd := exec.Command(exe)
    	cmd.Env = append(cmd.Environ(), "TEST_TIMEOUT_HANG=1")
    
    	// Hold stdin open until this (parent) process exits.
    	if _, err := cmd.StdinPipe(); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:23:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top