Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 186 for gomod (0.03 sec)

  1. 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)
  2. 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)
  3. .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)
  4. 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)
  5. 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)
  6. .github/ISSUE_TEMPLATE/00-bug.yml

            GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
            GOVCS=""
            GOVERSION="go1.20.7"
            GCCGO="gccgo"
            AR="ar"
            CC="clang"
            CXX="clang++"
            CGO_ENABLED="1"
            GOMOD="/dev/null"
            GOWORK=""
            CGO_CFLAGS="-O2 -g"
            CGO_CPPFLAGS=""
            CGO_CXXFLAGS="-O2 -g"
            CGO_FFLAGS="-O2 -g"
            CGO_LDFLAGS="-O2 -g"
            PKG_CONFIG="pkg-config"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modinfo/info.go

    	Indirect   bool             `json:",omitempty"` // module is only indirectly needed by main module
    	Dir        string           `json:",omitempty"` // directory holding local copy of files, if any
    	GoMod      string           `json:",omitempty"` // path to go.mod file describing module, if any
    	GoVersion  string           `json:",omitempty"` // go version used in module
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/toolchain.go

    	}
    	var max string
    	for _, v := range versions.List {
    		if max == "" || gover.ModCompare(r.path, v, max) > 0 {
    			max = v
    		}
    	}
    	return r.Stat(ctx, max)
    }
    
    func (r *toolchainRepo) GoMod(ctx context.Context, version string) (data []byte, err error) {
    	return []byte("module " + r.path + "\n"), nil
    }
    
    func (r *toolchainRepo) Zip(ctx context.Context, dst io.Writer, version string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 13 16:44:24 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_trimpath.txt

    )
    
    func main() {
    	exe := os.Args[1]
    	data, err := ioutil.ReadFile(exe)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	if os.Getenv("GO111MODULE") == "on" {
    		out, err := exec.Command("go", "env", "GOMOD").Output()
    		if err != nil {
    			log.Fatal(err)
    		}
    		modRoot := filepath.Dir(strings.TrimSpace(string(out)))
    		check(data, "module root", modRoot)
    	} else {
    		check(data, "GOPATH", os.Getenv("GOPATH"))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/os/exec/dot_test.go

    					good := dir + "/execabs-test"
    					if found, err := LookPath(good); err != nil || !strings.HasPrefix(found, good) {
    						t.Fatalf(`LookPath(%#q) = %#q, %v, want "%s...", nil`, good, found, err, good)
    					}
    					if runtime.GOOS == "windows" {
    						good = dir + `\execabs-test`
    						if found, err := LookPath(good); err != nil || !strings.HasPrefix(found, good) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top