Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,379 for mods (0.04 sec)

  1. test/gcgort.go

    		name: "bool",
    		t: func() {
    			var a bool
    			for i := 0; i < mods; i++ {
    				a = !a
    				runtime.Gosched()
    			}
    		},
    		pointerT: func() {
    			a := func() *bool { return new(bool) }()
    			for i := 0; i < mods; i++ {
    				*a = !*a
    				runtime.Gosched()
    			}
    		},
    		arrayT: func() {
    			a := [length]bool{}
    			for i := 0; i < mods; i++ {
    				for j := 0; j < len(a); j++ {
    					a[j] = !a[j]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/list.go

    				continue
    			}
    			if v != "none" {
    				mods = append(mods, moduleInfo(ctx, rs, module.Version{Path: arg, Version: v}, mode, reuse))
    			} else if cfg.BuildMod == "vendor" {
    				// In vendor mode, we can't determine whether a missing module is “a
    				// known dependency” because the module graph is incomplete.
    				// Give a more explicit error message.
    				mods = append(mods, &modinfo.ModulePublic{
    					Path:  arg,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/import.go

    			// shortest to longest. Reverse them now.
    			for i := 0; i < len(mods)/2; i++ {
    				j := len(mods) - 1 - i
    				mods[i], mods[j] = mods[j], mods[i]
    				roots[i], roots[j] = roots[j], roots[i]
    				dirs[i], dirs[j] = dirs[j], dirs[i]
    			}
    			return module.Version{}, "", "", nil, &AmbiguousImportError{importPath: path, Dirs: dirs, Modules: mods}
    		}
    
    		if len(sumErrMods) > 0 {
    			for i := 0; i < len(sumErrMods)/2; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_indirect_main.txt

    # dependencies through older versions of the main module.
    
    go list -f '{{with .Module}}{{.Path}}{{with .Version}} {{.}}{{end}}{{end}}' all
    cmp stdout pkgmods.txt
    
    go list -m all
    cmp stdout mods.txt
    
    go mod graph
    cmp stdout graph.txt
    
    -- go.mod --
    module golang.org/issue/root
    
    go 1.12
    
    replace (
    	golang.org/issue/mirror v0.1.0 => ./mirror-v0.1.0
    	golang.org/issue/pkg v0.1.0 => ./pkg-v0.1.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 23:07:08 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modcmd/verify.go

    	if err != nil {
    		base.Fatal(err)
    	}
    	mods := mg.BuildList()
    	// Use a slice of result channels, so that the output is deterministic.
    	errsChans := make([]<-chan []error, len(mods))
    
    	for i, mod := range mods {
    		sem <- token{}
    		errsc := make(chan []error, 1)
    		errsChans[i] = errsc
    		mod := mod // use a copy to avoid data races
    		go func() {
    			errsc <- verifyMod(ctx, mod)
    			<-sem
    		}()
    	}
    
    	ok := true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modcmd/why.go

    parenthesized note indicating that fact.
    
    For example:
    
    	$ go mod why golang.org/x/text/language golang.org/x/text/encoding
    	# golang.org/x/text/language
    	rsc.io/quote
    	rsc.io/sampler
    	golang.org/x/text/language
    
    	# golang.org/x/text/encoding
    	(main module does not need package golang.org/x/text/encoding)
    	$
    
    See https://golang.org/ref/mod#go-mod-why for more about 'go mod why'.
    	`,
    }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 21:32:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modcmd/download.go

    	}
    
    	// If there were explicit arguments, update go.mod and especially go.sum.
    	// 'go mod download mod@version' is a useful way to add a sum without using
    	// 'go get mod@version', which may have other side effects. We print this in
    	// some error message hints.
    	//
    	// If we're in workspace mode, update go.work.sum with checksums for all of
    	// the modules we downloaded that aren't already recorded. Since a requirement
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_outside.txt

    # 'go mod why' should fail, since there is no main module to depend on anything.
    ! go mod why -m example.com/version
    stderr '^go: go.mod file not found in current directory or any parent directory; see ''go help modules''$'
    
    # 'go mod edit', 'go mod tidy', and 'go mod fmt' should fail:
    # there is no go.mod file to edit.
    ! go mod tidy
    stderr '^go: go.mod file not found in current directory or any parent directory; see ''go help modules''$'
    ! go mod edit -fmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 15:34:40 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/workcmd/sync.go

    		// and do we need to pass a toolchain.Switcher in LoadPackages?
    		// If so, think about saving the WriteGoMods for after the loop,
    		// so we don't write some go.mods with the "before" toolchain
    		// and others with the "after" toolchain. If nothing else, that
    		// discrepancy could show up in auto-recorded toolchain lines.
    		changed, err := modload.EditBuildList(ctx, nil, mustSelectFor[m])
    		if err != nil {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/fetch.go

    	}
    	goSum.m[mod] = append(goSum.m[mod], h)
    }
    
    // checkSumDB checks the mod, h pair against the Go checksum database.
    // It calls base.Fatalf if the hash is to be rejected.
    func checkSumDB(mod module.Version, h string) error {
    	modWithoutSuffix := mod
    	noun := "module"
    	if before, found := strings.CutSuffix(mod.Version, "/go.mod"); found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top