Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 for gomod (0.12 sec)

  1. src/cmd/go/internal/gover/gomod.go

    //
    // Lookup should only be used with non-factored verbs
    // such as "go" and "toolchain", usually to find versions
    // or version-like strings.
    func GoModLookup(gomod []byte, key string) string {
    	for len(gomod) > 0 {
    		var line []byte
    		line, gomod, _ = bytes.Cut(gomod, nl)
    		line = bytes.TrimSpace(line)
    		if v, ok := parseKey(line, key); ok {
    			return v
    		}
    	}
    	return ""
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 16:31:25 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/env_gomod_issue61455.txt

    env TESTGO_VERSION=go1.500
    env TESTGO_VERSION_SWITCH=mismatch
    
    # go env GOMOD should not trigger a toolchain download
    cd $GOPATH/mod
    go env GOMOD
    stdout mod[/\\]go.mod
    ! stderr 'go: toolchain go1.500 invoked to provide go1.700'
    
    # go env GOWORK should not trigger a toolchain download
    cd $GOPATH/work
    go env GOWORK
    stdout work[/\\]go.work
    ! stderr 'go: toolchain go1.500 invoked to provide go1.700'
    
    -- $GOPATH/mod/go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 16:05:39 UTC 2024
    - 510 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/modfile_flag.txt

    go mod init example.com/m
    grep example.com/m go.alt.mod
    
    # 'go env GOMOD' should print the path to the real file.
    # 'go env' does not recognize the '-modfile' flag.
    go env GOMOD
    stdout '^'$WORK${/}gopath${/}src${/}'go\.mod$'
    
    # 'go list -m' should print the effective go.mod file as GoMod though.
    go list -m -f '{{.GoMod}}'
    stdout '^go.alt.mod$'
    
    # go mod edit should operate on the alternate file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_list.txt

    # list {{.Dir}} shows replaced directories
    cp go.mod2 go.mod
    go list -mod=mod -f {{.Dir}} rsc.io/quote
    go list -m -f '{{.Path}} {{.Version}} {{.Dir}}{{with .Replace}} {{.GoMod}} => {{.Version}} {{.Dir}} {{.GoMod}}{{end}}' all
    stdout 'mod[\\/]rsc.io[\\/]quote@v1.5.1'
    stdout 'v1.3.0.*mod[\\/]rsc.io[\\/]sampler@v1.3.1 .*[\\/]v1.3.1.mod => v1.3.1.*sampler@v1.3.1 .*[\\/]v1.3.1.mod'
    
    # list std should work
    go list std
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 18:16:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_replace_gopkgin.txt

    cd ../4-to-1
    go list -m gopkg.in/src-d/go-git.v4
    
    cd ../4-to-incompatible
    go list -m gopkg.in/src-d/go-git.v4
    
    # A mismatched gopkg.in path should not be able to replace a different major version.
    cd ../3-to-gomod-4
    ! go list -m gopkg.in/src-d/go-git.v3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_list_direct.txt

    # ensure that 'direct' mode can resolve the package to the module.
    # For a while, (*modfetch.codeRepo).Stat was not checking for a go.mod file,
    # which would produce a hard error at the subsequent call to GoMod.
    
    go get -v
    
    -- go.mod --
    module example.com
    go 1.13
    
    -- main.go --
    package main
    
    import _ "vcs-test.golang.org/git/v3pkg.git/v3"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 514 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/chdir.txt

    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
    stderr 'strings\.test'
    
    # go vet
    go vet -C ../strings -n
    stderr strings_test
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:23:42 UTC 2023
    - 744 bytes
    - Viewed (0)
  8. .github/dependabot.yml

    # Configures Depdendabot to PR go security updates only
    
    version: 2
    updates:
      # Go configuration for master branch
      - package-ecosystem: "gomod"
        directory: "/"
        schedule:
          interval: "daily"
        # Limit number of open PRs to 0 so that we only get security updates
        # See https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates
        open-pull-requests-limit: 0
        labels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:04:41 UTC 2024
    - 480 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/work.txt

    ! go run  example.com/b
    stderr 'a(\\|/)a.go:4:8: no required module provides package rsc.io/quote; to add it:\n\tcd '$WORK(\\|/)gopath(\\|/)src(\\|/)a'\n\tgo get rsc.io/quote'
    cd a
    go get rsc.io/quote
    cat go.mod
    go env GOMOD # go env GOMOD reports the module in a single module context
    stdout $GOPATH(\\|/)src(\\|/)a(\\|/)go.mod
    cd ..
    go run example.com/b
    stdout 'Hello, world.'
    
    # And try from a different directory
    cd c
    go run  example.com/b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	const pkg = "example.com/pgo/devirtualize"
    
    	// Add a go.mod so we have a consistent symbol names in this temp dir.
    	goMod := fmt.Sprintf(`module %s
    go 1.21
    `, pkg)
    	if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte(goMod), 0644); err != nil {
    		t.Fatalf("error writing go.mod: %v", err)
    	}
    
    	// Run the test without PGO to ensure that the test assertions are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top