Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tidyRoots (0.08 sec)

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

    	}
    	if c.Err != nil {
    		fmt.Fprintf(b, ": %v", c.UnwrapModuleError())
    	}
    	return b.String()
    }
    
    // tidyRoots trims the root dependencies to the minimal requirements needed to
    // both retain the same versions of all packages in pkgs and satisfy the
    // graph-pruning invariants (if applicable).
    func tidyRoots(ctx context.Context, rs *Requirements, pkgs []*loadPkg) (*Requirements, error) {
    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/load.go

    	}
    	ld.exitIfErrors(ctx)
    
    	// Tidy the build list, if applicable, before we report errors.
    	// (The process of tidying may remove errors from irrelevant dependencies.)
    	if ld.Tidy {
    		rs, err := tidyRoots(ctx, ld.requirements, ld.pkgs)
    		if err != nil {
    			ld.error(err)
    		} else {
    			if ld.TidyGoVersion != "" {
    				// Attempt to switch to the requested Go version. We have been using its
    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