Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for goFlags (0.14 sec)

  1. src/cmd/go/internal/base/goflags.go

    	"cmd/internal/quoted"
    )
    
    var goflags []string // cached $GOFLAGS list; can be -x or --x form
    
    // GOFLAGS returns the flags from $GOFLAGS.
    // The list can be assumed to contain one string per flag,
    // with each string either beginning with -name or --name.
    func GOFLAGS() []string {
    	InitGOFLAGS()
    	return goflags
    }
    
    // InitGOFLAGS initializes the goflags list from $GOFLAGS.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/goflags.txt

    env GOFLAGS=-f
    ! go list runtime
    stderr '^go: flag needs an argument: -f \(from (\$GOFLAGS|%GOFLAGS%)\)$'
    
    env GOFLAGS=-e=asdf
    ! go list runtime
    stderr '^go: invalid boolean value \"asdf\" for flag -e \(from (\$GOFLAGS|%GOFLAGS%)\)'
    
    # except in go bug (untested) and go env
    go env
    stdout GOFLAGS
    
    # Flags listed in GOFLAGS should be safe to duplicate on the command line.
    env GOFLAGS=-tags=magic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:47:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/vet_flags.txt

    go vet -n -- .
    
    [short] stop
    
    # Analyzer flags should be included from GOFLAGS, and should override
    # the defaults.
    go vet .
    env GOFLAGS='-tags=buggy'
    ! go vet .
    stderr 'possible Printf formatting directive'
    
    # Enabling one analyzer in GOFLAGS should disable the rest implicitly...
    env GOFLAGS='-tags=buggy -unsafeptr'
    go vet .
    
    # ...but enabling one on the command line should not disable the analyzers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/driver/flags.go

    package driver
    
    import (
    	"flag"
    	"strings"
    )
    
    // GoFlags implements the plugin.FlagSet interface.
    type GoFlags struct {
    	UsageMsgs []string
    }
    
    // Bool implements the plugin.FlagSet interface.
    func (*GoFlags) Bool(o string, d bool, c string) *bool {
    	return flag.Bool(o, d, c)
    }
    
    // Int implements the plugin.FlagSet interface.
    func (*GoFlags) Int(o string, d int, c string) *int {
    	return flag.Int(o, d, c)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:26:10 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_tagged_import_cycle.txt

    stdout '^example.com/chiral$\n^example.com/right$'
    
    env GOFLAGS='-tags=mirror'
    go mod why example.com/left
    stdout '^example.com/chiral$\n^example.com/left$'
    go mod why example.com/right
    stdout '^example.com/chiral$\n^example.com/right$'
    env GOFLAGS=''
    
    # 'go mod tidy' should successfully handle the cycle.
    env GOFLAGS=-mod=readonly
    go mod tidy
    
    # 'go mod vendor' should copy in both packages without crashing.
    go mod vendor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 21 19:58:38 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/env_sanitize.txt

    env GOFLAGS='$(echo ''cc"''; echo ''OOPS="oops'')'
    go env
    [GOOS:darwin] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)'''
    [GOOS:linux] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)'''
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 14:28:38 UTC 2023
    - 331 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/modfile_flag.txt

    # Recursive go commands started with 'go generate' should not get an explicitly
    # passed -modfile, but they should see arguments from GOFLAGS.
    cp go.alt.mod go.gen.mod
    env OLD_GOFLAGS=$GOFLAGS
    env GOFLAGS=-modfile=go.gen.mod
    go generate -modfile=go.alt.mod .
    env GOFLAGS=$OLD_GOFLAGS
    grep example.com/exclude go.gen.mod
    ! grep example.com/exclude go.alt.mod
    
    
    # The original files should not have been modified.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. hack/make-rules/test.sh

    testargs=()
    eval "testargs=(${KUBE_TEST_ARGS:-})"
    
    # Used to filter verbose test output.
    go_test_grep_pattern=".*"
    
    goflags=()
    # The junit report tool needs full test case information to produce a
    # meaningful report.
    if [[ -n "${KUBE_JUNIT_REPORT_DIR}" ]] ; then
      goflags+=(-v)
      goflags+=(-json)
      # Show only summary lines by matching lines like "status package/test"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_flags.txt

    stderr '-test.outputdir=[^ ]'
    exists ./cover.out
    ! exists ./x/cover.out
    
    # Test flags from GOFLAGS should be forwarded to the test binary,
    # with the 'test.' prefix in the GOFLAGS entry...
    env GOFLAGS='-test.timeout=24h0m0s -count=1'
    go test -v -x ./x
    stdout 'timeout: 24h0m0s$'
    stderr '-test.count=1'
    
    # ...or without.
    env GOFLAGS='-timeout=24h0m0s -count=1'
    go test -v -x ./x
    stdout 'timeout: 24h0m0s$'
    stderr '-test.count=1'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:53:14 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/cc_test.go

    		ldFlags:   []string{"-fsanitize=" + sanitizer},
    	}
    
    	if testing.Verbose() {
    		c.goFlags = append(c.goFlags, "-x")
    	}
    
    	switch sanitizer {
    	case "memory":
    		c.goFlags = append(c.goFlags, "-msan")
    
    	case "thread":
    		c.goFlags = append(c.goFlags, "--installsuffix=tsan")
    		compiler, _ := compilerVersion()
    		if compiler.name == "gcc" {
    			c.cFlags = append(c.cFlags, "-fPIC")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top