Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 785 for gomod (0.04 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/mod_enabled.txt

    go env GOMOD
    stdout z[/\\]go.mod
    
    cd $GOPATH/src/x/y
    go env GOMOD
    stdout 'NUL|/dev/null'
    go list -m
    stdout '^command-line-arguments$'
    
    cd $GOPATH/foo
    go env GOMOD
    stdout foo[/\\]go.mod
    
    cd $GOPATH/foo/bar/baz
    go env GOMOD
    stdout foo[/\\]go.mod
    
    # GO111MODULE=off should trigger nowhere
    env GO111MODULE=off
    
    cd $GOPATH/src/x/y/z
    go env GOMOD
    ! stdout .+
    
    cd $GOPATH/foo
    go env GOMOD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 21 01:30:48 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/reuse_git.txt

    stdout '"TagSum": "t1:47DEQpj8HBSa[+]/TImW[+]5JCeuQeRkm5NMpJWZG3hSuFU="'
    stdout '"Ref": "HEAD"'
    stdout '"Hash": "fc3a09f3dc5cfe0d7a743ea18f1f5226e68b3777"'
    ! stdout '"Dir"'
    ! stdout '"Info"'
    ! stdout '"GoMod"'
    ! stdout '"Zip"'
    
    # reuse go mod download vcstest/hello pseudoversion result
    go mod download -reuse=hellopseudo.json -x -json vcs-test.golang.org/git/hello.git@v0.0.0-20170922010558-fc3a09f3dc5c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 22:10:38 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. .github/dependabot.yml

    ---
    version: 2
    updates:
      - package-ecosystem: gomod
        directory: /
        schedule:
          interval: weekly
      - package-ecosystem: github-actions
        directory: /
        schedule:
          interval: weekly
      - package-ecosystem: gomod
        directory: /tests
        schedule:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Aug 09 05:16:25 UTC 2021
    - 287 bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/go/testdata/script/mod_replace.txt

    -- go.mod --
    module quoter
    
    require rsc.io/quote/v3 v3.0.0
    
    -- main.go --
    package main
    
    import (
    	"fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/go/internal/modfetch/coderepo_test.go

    				}
    
    				if tt.gomod != "" || tt.gomodErr != "" {
    					data, err := repo.GoMod(ctx, tt.version)
    					if err != nil && tt.gomodErr == "" {
    						t.Errorf("repo.GoMod(%q): %v", tt.version, err)
    					} else if err != nil && tt.gomodErr != "" {
    						if err.Error() != tt.gomodErr {
    							t.Errorf("repo.GoMod(%q): %v, want %q", tt.version, err, tt.gomodErr)
    						}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 20:10:14 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top