Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirHash ¶
DirHash reads directory and produces its H1 hash. Note: remember to modify the go.mod file first before running this function.
func FetchDirectDeps ¶
func FetchDirectDeps(mods []*Module)
func UpdateGoMod ¶
func UpdateGoSum ¶
func UpdateVersion ¶
Types ¶
type Module ¶
type Module struct {
Prefix string
FileName string
GoModHash string
DirHash string
License string
File *modfile.File
Deps []*Module
DepsVersion []string
Sums map[module.Version][]string
}
func Filter ¶ added in v0.2.0
Filter returns the subset of mods whose directory name is not listed in exclude. Directory names are matched verbatim (e.g. "architecture", "integration"). When exclude is empty, mods is returned unchanged.
Excluding a module that other kept modules depend on leaves those require statements untouched (they keep referencing the previous version); callers are expected to exclude only modules that are not part of the release graph.
Click to show internal directories.
Click to hide internal directories.