type go.pact.im/x/goship/internal/modgraph.Module
44 uses
go.pact.im/x/goship/internal/modgraph (current package)
filter.go#L25: Module *Module
filter.go#L30: func Filter(modules []*Module, opts FilterOptions) (kept []*Module, skipped []SkippedModule, err error) {
filter.go#L69: if !slices.ContainsFunc(kept, func(m *Module) bool { return matchesTarget(m, target) }) {
filter.go#L77: func matchExcludeVersion(m *Module, excludeVers []string) string {
filter.go#L97: func matchesTargets(m *Module, targets []string) bool {
filter.go#L101: func matchesTarget(m *Module, target string) bool {
filter.go#L105: func matchAny(patterns []string, m *Module) (bool, error) {
graph.go#L17: type Module struct {
graph.go#L28: modules map[string]*Module
graph.go#L29: deps map[string][]*Module // module -> intra-graph dependencies
graph.go#L30: dependents map[string][]*Module // module -> intra-graph reverse dependencies
graph.go#L31: layers [][]*Module
graph.go#L40: func Build(modules []*Module) (*Graph, error) {
graph.go#L41: byPath := make(map[string]*Module, len(modules))
graph.go#L54: deps := make(map[string][]*Module, len(modules))
graph.go#L55: dependents := make(map[string][]*Module, len(modules))
graph.go#L83: var current []*Module
graph.go#L91: var layers [][]*Module
graph.go#L97: var next []*Module
graph.go#L124: func (g *Graph) Layers() [][]*Module {
graph.go#L129: func (g *Graph) Modules() []*Module {
graph.go#L130: var all []*Module
graph.go#L138: func (g *Graph) Module(path string) (*Module, bool) {
graph.go#L144: func (g *Graph) DepsOf(modPath string) []*Module {
graph.go#L149: func (g *Graph) DependentsOf(modPath string) []*Module {
graph.go#L180: var subset []*Module
graph.go#L189: func compareModules(a, b *Module) int {
graph.go#L193: func findCycle(byPath map[string]*Module, deps map[string][]*Module, remaining map[string]int) []string {
go.pact.im/x/goship/internal/release
plan.go#L271: layer []*modgraph.Module,
snapshot.go#L30: Modules []*modgraph.Module
snapshot.go#L249: func changeFor(snap *Snapshot, m *modgraph.Module) ModuleChange {
snapshot.go#L277: func transitiveWorkspaceDirs(kept []*modgraph.Module, reqs []apidiff.ModuleRequest) []string {
go.pact.im/x/goship/internal/workspace
workspace.go#L40: Load(ctx context.Context, v vcs.VCS, rev string) ([]*modgraph.Module, error)
workspace.go#L69: func (l *AutoLoader) Load(ctx context.Context, v vcs.VCS, rev string) ([]*modgraph.Module, error) {
workspace.go#L88: func (l *WorkLoader) Load(ctx context.Context, v vcs.VCS, rev string) ([]*modgraph.Module, error) {
workspace.go#L97: func loadWorkBytes(ctx context.Context, v vcs.VCS, rev, workFile string, data []byte) ([]*modgraph.Module, error) {
workspace.go#L122: func (l *WalkLoader) Load(ctx context.Context, v vcs.VCS, rev string) ([]*modgraph.Module, error) {
workspace.go#L141: func readModules(ctx context.Context, v vcs.VCS, rev string, modDirs []string) ([]*modgraph.Module, error) {
workspace.go#L145: modules := make([]*modgraph.Module, len(modDirs))
workspace.go#L177: slices.SortFunc(modules, func(a, b *modgraph.Module) int {
workspace.go#L195: func readModule(ctx context.Context, v vcs.VCS, rev, modDir string) (*modgraph.Module, error) {
workspace.go#L220: return &modgraph.Module{