Skip to content

Commit

Permalink
Exclude non-release modules from the release manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Jun 13, 2024
1 parent 2087764 commit 8f6e42d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/apply_manifest_generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8f6e42d

Please sign in to comment.