Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TrimGoSum (0.07 sec)

  1. src/cmd/go/internal/modfetch/fetch.go

    			return true
    		}
    	}
    	return false
    }
    
    // TrimGoSum trims go.sum to contain only the modules needed for reproducible
    // builds.
    //
    // keep is used to check whether a sum should be retained in go.mod. It should
    // have entries for both module content sums and go.mod sums (version ends
    // with "/go.mod").
    func TrimGoSum(keep map[module.Version]bool) {
    	goSum.mu.Lock()
    	defer goSum.mu.Unlock()
    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/load.go

    			if err != nil {
    				base.Fatal(err)
    			}
    			goModDiff := diff.Diff("current/go.mod", currentGoMod, "tidy/go.mod", updatedGoMod)
    
    			modfetch.TrimGoSum(keep)
    			// Dropping compatibility for 1.16 may result in a strictly smaller go.sum.
    			// Update the keep map with only the loaded.requirements.
    			if gover.Compare(compatVersion, "1.16") > 0 {
    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