From 8f6e42dfa8fda5b255ea0cc05624455f50c5619c Mon Sep 17 00:00:00 2001 From: Bernd Ahlers Date: Thu, 13 Jun 2024 15:06:01 +0200 Subject: [PATCH] Exclude non-release modules from the release manifest --- cmd/apply_manifest_generate.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/apply_manifest_generate.go b/cmd/apply_manifest_generate.go index 9e9e6ef2..c3d0c4bb 100644 --- a/cmd/apply_manifest_generate.go +++ b/cmd/apply_manifest_generate.go @@ -104,6 +104,10 @@ func amgCommandBatch(newManifest *manifest.Manifest) string { var newModules []manifest.ManifestModule for _, module := range newManifest.Modules { + // Don't include non-modules in the release manifest + if module.SkipRelease { + continue + } module.Revision = amgReleaseVersion newModules = append(newModules, module) } @@ -154,6 +158,10 @@ func amgCommandInteractive(newManifest *manifest.Manifest) string { var newModules []manifest.ManifestModule for _, module := range newManifest.Modules { + // Don't include non-modules in the release manifest + if module.SkipRelease { + continue + } module.Revision = newVersion newModules = append(newModules, module)