Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for inWorkspaceMode (0.43 sec)

  1. src/cmd/go/internal/modload/modfile.go

    // module versions.
    //
    // The caller must not modify the returned summary.
    func goModSummary(m module.Version) (*modFileSummary, error) {
    	if m.Version == "" && !inWorkspaceMode() && MainModules.Contains(m.Path) {
    		panic("internal error: goModSummary called on a main module")
    	}
    	if gover.IsToolchain(m.Path) {
    		return rawGoModSummary(m)
    	}
    
    	if cfg.BuildMod == "vendor" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/import.go

    					mods = append(mods, vendorPkgModule[path])
    					dirs = append(dirs, dir)
    					roots = append(roots, vendorDir)
    				} else {
    					subCommand := "mod"
    					if inWorkspaceMode() {
    						subCommand = "work"
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top