Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for jmod (0.2 sec)

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

    			matchPackages(ctx, m, imports.AnyTags(), omitStd, []module.Version{mod})
    			return m
    		}
    	} else {
    		match = func(mod module.Version, roots []string, isLocal bool) *search.Match {
    			m := search.NewMatch(pattern)
    			prefix := mod.Path
    			if MainModules.Contains(mod.Path) {
    				prefix = MainModules.PathPrefix(module.Version{Path: mod.Path})
    			}
    			for _, root := range roots {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/magic.go

    //
    // Given c, compute m such that (c * m) mod 2^n == 1
    // Then if c divides x (x%c ==0), the quotient is given by q = x/c == x*m mod 2^n
    //
    // x can range from 0, c, 2c, 3c, ... ⎣(2^n - 1)/c⎦ * c the maximum multiple
    // Thus, x*m mod 2^n is 0, 1, 2, 3, ... ⎣(2^n - 1)/c⎦
    // i.e. the quotient takes all values from zero up to max = ⎣(2^n - 1)/c⎦
    //
    // If x is not divisible by c, then x*m mod 2^n must take some larger value than max.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modcmd/download.go

    useful on systems that do not preserve the module cache.
    
    The -x flag causes download to print the commands download executes.
    
    See https://golang.org/ref/mod#go-mod-download for more about 'go mod download'.
    
    See https://golang.org/ref/mod#version-queries for more about version queries.
    	`,
    }
    
    var (
    	downloadJSON  = cmdDownload.Flag.Bool("json", false, "")
    	downloadReuse = cmdDownload.Flag.String("reuse", "", "")
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modcmd/vendor.go

    path instead of "vendor". The go command can only use a vendor directory
    named "vendor" within the module root directory, so this flag is
    primarily useful for other tools.
    
    See https://golang.org/ref/mod#go-mod-vendor for more about 'go mod vendor'.
    	`,
    	Run: runVendor,
    }
    
    var vendorE bool   // if true, report errors but proceed anyway
    var vendorO string // if set, overrides the default output directory
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. src/cmd/go/script_test.go

    	"GCCGOTOOLDIR",       // for gccgo testing
    }
    
    // updateSum runs 'go mod tidy', 'go list -mod=mod -m all', or
    // 'go list -mod=mod all' in the test's current directory if a file named
    // "go.mod" is present after the archive has been extracted. updateSum modifies
    // archive and returns true if go.mod or go.sum were changed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/import.go

    		// command line. Recommend 'go mod download' for the modules that could
    		// provide the package, since that shouldn't change go.mod.
    		if len(e.mods) > 0 {
    			args := make([]string, len(e.mods))
    			for i, mod := range e.mods {
    				args[i] = mod.Path
    			}
    			hint = fmt.Sprintf("; to add:\n\tgo mod download %s", strings.Join(args, " "))
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. src/cmd/go/internal/workcmd/edit.go

    package workcmd
    
    import (
    	"cmd/go/internal/base"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/modload"
    	"context"
    	"encoding/json"
    	"fmt"
    	"os"
    	"path/filepath"
    	"strings"
    
    	"golang.org/x/mod/module"
    
    	"golang.org/x/mod/modfile"
    )
    
    var cmdEdit = &base.Command{
    	UsageLine: "go work edit [editing flags] [go.work]",
    	Short:     "edit go.work from tools or scripts",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/go/internal/mvs/mvs.go

    		if err != nil {
    			// If we can't load the requirements, we couldn't load the go.mod file.
    			// There are a number of reasons this can happen, but this usually
    			// means an older version of the module had a missing or invalid
    			// go.mod file. For example, if example.com/mod released v2.0.0 before
    			// migrating to modules (v2.0.0+incompatible), then added a valid go.mod
    			// in v2.0.1, downgrading from v2.0.1 would cause this error.
    			//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 21:58:12 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/pgo_inl_test.go

    	const pkg = "example.com/pgo/inline"
    
    	// Add a go.mod so we have a consistent symbol names in this temp dir.
    	goMod := fmt.Sprintf(`module %s
    go 1.19
    `, pkg)
    	if err := os.WriteFile(filepath.Join(dir, "go.mod"), []byte(goMod), 0644); err != nil {
    		t.Fatalf("error writing go.mod: %v", err)
    	}
    
    	exe := filepath.Join(dir, "test.exe")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top