Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 331 for gomod (0.09 sec)

  1. src/cmd/go/proxy_test.go

    	a, err := readArchive(path, vers)
    	if err != nil {
    		return nil, err
    	}
    	var names []string
    	files := make(map[string][]byte)
    	var gomod []byte
    	for _, f := range a.Files {
    		if strings.HasPrefix(f.Name, ".") {
    			if f.Name == ".mod" {
    				gomod = f.Data
    			}
    			continue
    		}
    		name := path + "@" + vers + "/" + f.Name
    		names = append(names, name)
    		files[name] = f.Data
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 12K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modcmd/download.go

            Query    string // version query corresponding to this version
            Version  string // module version
            Error    string // error loading module
            Info     string // absolute path to cached .info file
            GoMod    string // absolute path to cached .mod file
            Zip      string // absolute path to cached .zip file
            Dir      string // absolute path to cached source root directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/go/internal/modfetch/proxy.go

    	}
    	return info, nil
    }
    
    func (p *proxyRepo) GoMod(ctx context.Context, version string) ([]byte, error) {
    	if version != module.CanonicalVersion(version) {
    		return nil, p.versionError(version, fmt.Errorf("internal error: version passed to GoMod is not canonical"))
    	}
    
    	encVer, err := module.EscapeVersion(version)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. src/cmd/go/internal/toolchain/select.go

    		return
    	}
    
    	// As a special case, let "go env GOMOD" and "go env GOWORK" be handled by
    	// the local toolchain. Users expect to be able to look up GOMOD and GOWORK
    	// since the go.mod and go.work file need to be determined to determine
    	// the minimum toolchain. See issue #61455.
    	if len(os.Args) == 3 && os.Args[1] == "env" && (os.Args[2] == "GOMOD" || os.Args[2] == "GOWORK") {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/shared_test.go

    	}
    	if major < 5 {
    		t.Skipf("gccgo too old (%s)", strings.TrimSpace(string(output)))
    	}
    
    	gomod, err := exec.Command("go", "env", "GOMOD").Output()
    	if err != nil {
    		t.Fatalf("go env GOMOD: %v", err)
    	}
    	if len(bytes.TrimSpace(gomod)) > 0 {
    		t.Skipf("gccgo not supported in module mode; see golang.org/issue/30344")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/help/helpdoc.go

    	GOHOSTOS
    		The operating system (GOOS) of the Go toolchain binaries.
    	GOMOD
    		The absolute path to the go.mod of the main module.
    		If module-aware mode is enabled, but there is no go.mod, GOMOD will be
    		os.DevNull ("/dev/null" on Unix-like systems, "NUL" on Windows).
    		If module-aware mode is disabled, GOMOD will be the empty string.
    	GOTOOLDIR
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_outside.txt

    env GO111MODULE=on
    [short] skip
    
    # This script tests commands in module mode outside of any module.
    #
    # First, ensure that we really are in module mode, and that we really don't have
    # a go.mod file.
    go env GOMOD
    stdout 'NUL|/dev/null'
    
    
    # 'go list' without arguments implicitly operates on the current directory,
    # which is not in a module.
    ! go list
    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/list/list.go

            Indirect   bool          // module is only indirectly needed by main module
            Dir        string        // directory holding local copy of files, if any
            GoMod      string        // path to go.mod file describing module, if any
            GoVersion  string        // go version used in module
            Retracted  []string      // retraction information, if any (with -retracted or -u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    			}
    		}
    		tokens = append(tokens, tok.text)
    		end = tok.endPos
    	}
    }
    
    var (
    	slashSlash = []byte("//")
    	moduleStr  = []byte("module")
    )
    
    // ModulePath returns the module path from the gomod file text.
    // If it cannot find a module path, it returns an empty string.
    // It is tolerant of unrelated problems in the go.mod file.
    func ModulePath(mod []byte) string {
    	for len(mod) > 0 {
    		line := mod
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top