diff --git a/modules/mesh-delivery-indexer/internal/index/seed_steps.go b/modules/mesh-delivery-indexer/internal/index/seed_steps.go index 8b9d97b4..4fece72d 100644 --- a/modules/mesh-delivery-indexer/internal/index/seed_steps.go +++ b/modules/mesh-delivery-indexer/internal/index/seed_steps.go @@ -112,7 +112,12 @@ func (ix *Indexer) SeedModulesFrom(ctx context.Context, defs map[string]seatdef. seat := seatOf[a.Ref] sa := SeedArtifact{Name: name, Seat: seat} in := nodebuildgo.StepsInput{Module: e.Module, Artifact: nodebuildgo.DetectedStepsByModuleArtifactKey(e.Module, name), Fingerprint: e.Fp, - Fetch: &nodebuildgo.Fetch{Repository: e.Repository, Commit: e.Commit, Dir: e.Path, Paths: namedPaths(e, name), Packages: maps.Clone(e.Packages)}} + Fetch: &nodebuildgo.Fetch{Repository: e.Repository, Commit: e.Commit, Packages: maps.Clone(e.Packages)}} + // The module's directory and its named paths go together, only when the entry names its paths (ADR 0499 clause + // 4); a request without them builds from the module's directory (sdk/buildstep FetchRequest). + if paths := namedPaths(e, name); len(paths) > 0 { + in.Fetch.Dir, in.Fetch.Paths = e.Path, paths + } if _, gone := unanswered[seat]; gone { // the seat did not answer earlier in this seed: its later artifacts are not asked again (A-392) m.Artifacts = append(m.Artifacts, sa)