# Packages
Package commontest provides exported shared helper functions for testing.
# Functions
No description provided by the author
CommitChangesToNewBranch creates a new branch, commits to it, and returns to the original worktree.
GetAllModuleSetNames returns the name of all module sets given in a versioningFile.
No description provided by the author
GetWorktree returns the worktree of a repo.
IsStableVersion returns true if modSet.Version is stable (i.e.
ModulePathsToTagNames returns a list of tag names from a list of module's import paths.
NewModuleSetRelease returns a ModuleSetRelease struct by specifying a specific set of modules to update.
NewModuleVersioning returns a ModuleVersioning struct from a versioning file and repo root.
NewModuleVersioningWithIgnoreExcluded returns a ModuleVersioning struct from a versioning file and repo root and supports ignoring the excluded-modules configuration.
RunGoModTidy takes a ModulePathMap and runs "go mod tidy" at each module file path.
UpdateGoModFiles updates the go.mod files in modFilePaths by updating all modules listed in moduleRefs to use the versions given.
VerifyWorkingTreeClean returns nil if the working tree is clean or an error if not.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
ModuleInfo is a reverse of the ModuleSetMap, to allow for quick lookup from module path to its set and version.
ModuleRef holds a module import path and a version for that module.
ModuleSet holds the version that the specified modules within the set will have.
ModuleSetRelease contains info about a specific set of modules in the versioning file to be updated.
ModuleVersioning holds info about modules listed in a versioning file.
# Type aliases
ModuleFilePath holds the file path to the go.mod file within the repo, including the base file name ("go.mod").
ModuleInfoMap is a mapping from a module's import path to its ModuleInfo struct.
ModulePath holds the module import path, such as "go.opentelemetry.io/otel".
ModulePathMap is a mapping from a module's import path to its file path.
ModuleSetMap maps the name of a module set to a ModuleSet struct.
ModuleTagName is the simple file path to the directory of a go.mod file used for Git tagging.