Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for convertPruning (0.15 sec)

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

    		return rs, nil
    	}
    
    	return newRequirements(unpruned, roots, direct), nil
    }
    
    // convertPruning returns a version of rs with the given pruning behavior.
    // If rs already has the given pruning, convertPruning returns rs unmodified.
    func convertPruning(ctx context.Context, rs *Requirements, pruning modPruning) (*Requirements, error) {
    	if rs.pruning == pruning {
    		return rs, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/edit.go

    			// older than gover.GoStrictVersion. Once that is fixed, is this still
    			// needed?
    			rootPruning = unpruned
    			break
    		}
    	}
    
    	if rootPruning != rs.pruning {
    		rs, err = convertPruning(ctx, rs, rootPruning)
    		if err != nil {
    			return orig, false, err
    		}
    	}
    
    	// selectedRoot records the edited version (possibly "none") for each module
    	// path that would be a root in the edited requirements.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/init.go

    			// version uses a pruned module graph — so we need to convert the
    			// requirements to support pruning.
    			if gover.Compare(v, gover.ExplicitIndirectVersion) >= 0 {
    				var err error
    				rs, err = convertPruning(ctx, rs, pruned)
    				if err != nil {
    					return nil, err
    				}
    			}
    		} else {
    			rawGoVersion.Store(mainModule, gover.DefaultGoModVersion)
    		}
    	}
    
    	requirements = rs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/load.go

    		}
    	}
    	ld.exitIfErrors(ctx)
    
    	updateGoVersion := func() {
    		goVersion := ld.goVersion()
    
    		if ld.requirements.pruning != workspace {
    			var err error
    			ld.requirements, err = convertPruning(ctx, ld.requirements, pruningForGoVersion(goVersion))
    			if err != nil {
    				ld.error(err)
    				ld.exitIfErrors(ctx)
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top