diff --git a/cmd/dagger/cmd/doc.go b/cmd/dagger/cmd/doc.go index c6c1eda6..765ed609 100644 --- a/cmd/dagger/cmd/doc.go +++ b/cmd/dagger/cmd/doc.go @@ -337,6 +337,11 @@ func walkStdlib(ctx context.Context, output, format string) { return nil } + // Ignore tests directories + if strings.Contains(p, "tests") { + return nil + } + pkgName := fmt.Sprintf("alpha.dagger.io/%s", p) lg.Info().Str("package", pkgName).Str("format", format).Msg("generating doc") val, err := loadCode(pkgName)