Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsToolchain (0.12 sec)

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

    	"golang.org/x/mod/semver"
    )
    
    // IsToolchain reports whether the module path corresponds to the
    // virtual, non-downloadable module tracking go or toolchain directives in the go.mod file.
    //
    // Note that IsToolchain only matches "go" and "toolchain", not the
    // real, downloadable module "golang.org/toolchain" containing toolchain files.
    //
    //	IsToolchain("go") = true
    //	IsToolchain("toolchain") = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 19:18:46 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/go/internal/gover/mod_test.go

    package gover
    
    import (
    	"slices"
    	"strings"
    	"testing"
    
    	"golang.org/x/mod/module"
    )
    
    func TestIsToolchain(t *testing.T) { test1(t, isToolchainTests, "IsToolchain", IsToolchain) }
    
    var isToolchainTests = []testCase1[string, bool]{
    	{"go", true},
    	{"toolchain", true},
    	{"anything", false},
    	{"golang.org/toolchain", false},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 17:51:28 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/list.go

    		}
    
    		// Module path or pattern.
    		var match func(string) bool
    		if arg == "all" {
    			match = func(p string) bool { return !gover.IsToolchain(p) }
    		} else if strings.Contains(arg, "...") {
    			mp := pkgpattern.MatchPattern(arg)
    			match = func(p string) bool { return mp(p) && !gover.IsToolchain(p) }
    		} else {
    			var v string
    			if mg == nil {
    				var ok bool
    				v, ok = rs.rootSelected(arg)
    				if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 22:43:50 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modcmd/verify.go

    			base.Errorf("%s", err)
    			ok = false
    		}
    	}
    	if ok {
    		fmt.Printf("all modules verified\n")
    	}
    }
    
    func verifyMod(ctx context.Context, mod module.Version) []error {
    	if gover.IsToolchain(mod.Path) {
    		// "go" and "toolchain" have no disk footprint; nothing to verify.
    		return nil
    	}
    	if modload.MainModules.Contains(mod.Path) {
    		return nil
    	}
    	var errs []error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/search.go

    			}
    		}
    		if HasModRoot() {
    			walkPkgs(VendorDir(), "", pruneVendor)
    		}
    		return
    	}
    
    	for _, mod := range modules {
    		if gover.IsToolchain(mod.Path) || !treeCanMatch(mod.Path) {
    			continue
    		}
    
    		var (
    			root, modPrefix string
    			isLocal         bool
    		)
    		if MainModules.Contains(mod.Path) {
    			if MainModules.ModRoot(mod) == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top