Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 589 for gomod (0.18 sec)

  1. 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)
  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/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)
  4. src/cmd/go/internal/modload/build.go

    				m.GoVersion = summary.goVersion
    			}
    		}
    
    		if m.Version != "" {
    			if checksumOk("/go.mod") {
    				gomod, err := modfetch.CachePath(ctx, mod, "mod")
    				if err == nil {
    					if info, err := os.Stat(gomod); err == nil && info.Mode().IsRegular() {
    						m.GoMod = gomod
    					}
    				}
    				if gomodsum, ok := modfetch.RecordedSum(modkey(mod)); ok {
    					m.GoModSum = gomodsum
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modcmd/edit.go

    	}
    
    	if *editJSON && *editPrint {
    		base.Fatalf("go: cannot use both -json and -print")
    	}
    
    	if len(args) > 1 {
    		base.Fatalf("go: too many arguments")
    	}
    	var gomod string
    	if len(args) == 1 {
    		gomod = args[0]
    	} else {
    		gomod = modload.ModFilePath()
    	}
    
    	if *editModule != "" {
    		if err := module.CheckImportPath(*editModule); err != nil {
    			base.Fatalf("go: invalid -module: %v", err)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. .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)
  7. src/cmd/go/internal/modfetch/cache.go

    	if err != nil {
    		return nil, "", err
    	}
    	return info, file, nil
    }
    
    // GoMod is like Lookup(ctx, path).GoMod(rev) but avoids the
    // repository path resolution in Lookup if the result is
    // already cached on local disk.
    func GoMod(ctx context.Context, path, rev string) ([]byte, error) {
    	// Convert commit hash to pseudo-version
    	// to increase cache hit rate.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/go/internal/modload/modfile.go

    )
    
    // ReadModFile reads and parses the mod file at gomod. ReadModFile properly applies the
    // overlay, locks the file while reading, and applies fix, if applicable.
    func ReadModFile(gomod string, fix modfile.VersionFixer) (data []byte, f *modfile.File, err error) {
    	gomod = base.ShortPath(gomod) // use short path in any errors
    	if gomodActual, ok := fsys.OverlayPath(gomod); ok {
    		// Don't lock go.mod if it's part of the overlay.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    	}
    	return ""
    }
    
    // ExtraEnvVars returns environment variables that should not leak into child processes.
    func ExtraEnvVars() []cfg.EnvVar {
    	gomod := ""
    	modload.Init()
    	if modload.HasModRoot() {
    		gomod = modload.ModFilePath()
    	} else if modload.Enabled() {
    		gomod = os.DevNull
    	}
    	modload.InitWorkfile()
    	gowork := modload.WorkFilePath()
    	// As a special case, if a user set off explicitly, report that in GOWORK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top