Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package terragrunt for openSUSE:Factory checked in at 2025-11-25 17:24:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/terragrunt (Old) and /work/SRC/openSUSE:Factory/.terragrunt.new.14147 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "terragrunt" Tue Nov 25 17:24:32 2025 rev:275 rq:1319877 version:0.93.11 Changes: -------- --- /work/SRC/openSUSE:Factory/terragrunt/terragrunt.changes 2025-11-24 14:08:12.974819164 +0100 +++ /work/SRC/openSUSE:Factory/.terragrunt.new.14147/terragrunt.changes 2025-11-25 17:24:42.074417888 +0100 @@ -1,0 +2,11 @@ +Tue Nov 25 06:32:28 UTC 2025 - Johannes Kastl <[email protected]> + +- Update to version 0.93.11: + * Bug Fixes + - Stack files matching + Fixed stack detection so only files whose base name exactly + matches the default stack name are treated as stack files. + * What's Changed + - fix: exact matching of stack files (#5129) + +------------------------------------------------------------------- Old: ---- terragrunt-0.93.10.obscpio New: ---- terragrunt-0.93.11.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ terragrunt.spec ++++++ --- /var/tmp/diff_new_pack.ximv2s/_old 2025-11-25 17:24:45.130546772 +0100 +++ /var/tmp/diff_new_pack.ximv2s/_new 2025-11-25 17:24:45.130546772 +0100 @@ -17,7 +17,7 @@ Name: terragrunt -Version: 0.93.10 +Version: 0.93.11 Release: 0 Summary: Thin wrapper for Terraform for working with multiple Terraform modules License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.ximv2s/_old 2025-11-25 17:24:45.202549808 +0100 +++ /var/tmp/diff_new_pack.ximv2s/_new 2025-11-25 17:24:45.206549977 +0100 @@ -3,7 +3,7 @@ <param name="url">https://github.com/gruntwork-io/terragrunt</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.93.10</param> + <param name="revision">v0.93.11</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.ximv2s/_old 2025-11-25 17:24:45.230550990 +0100 +++ /var/tmp/diff_new_pack.ximv2s/_new 2025-11-25 17:24:45.234551158 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/gruntwork-io/terragrunt</param> - <param name="changesrevision">25150a61693db8edb1a5eeb173d4de20c2ec25ab</param></service></servicedata> + <param name="changesrevision">784117aa3ee23b9b344133215aa803521ff50d11</param></service></servicedata> (No newline at EOF) ++++++ terragrunt-0.93.10.obscpio -> terragrunt-0.93.11.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.93.10/config/config_helpers.go new/terragrunt-0.93.11/config/config_helpers.go --- old/terragrunt-0.93.10/config/config_helpers.go 2025-11-20 16:15:08.000000000 +0100 +++ new/terragrunt-0.93.11/config/config_helpers.go 2025-11-24 19:29:45.000000000 +0100 @@ -740,7 +740,7 @@ } // check if file is stack file, decode as stack file - if strings.HasSuffix(targetConfig, DefaultStackFile) { + if filepath.Base(targetConfig) == DefaultStackFile { stackSourceDir := filepath.Dir(targetConfig) values, readErr := ReadValues(ctx, l, opts, stackSourceDir) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.93.10/internal/stacks/generate/generate.go new/terragrunt-0.93.11/internal/stacks/generate/generate.go --- old/terragrunt-0.93.10/internal/stacks/generate/generate.go 2025-11-20 16:15:08.000000000 +0100 +++ new/terragrunt-0.93.11/internal/stacks/generate/generate.go 2025-11-24 19:29:45.000000000 +0100 @@ -324,8 +324,7 @@ if len(path) >= generationMaxPath { return errors.Errorf("Cycle detected: maximum path length (%d) exceeded at %s", generationMaxPath, path) } - - if strings.HasSuffix(path, config.DefaultStackFile) { + if filepath.Base(path) == config.DefaultStackFile { l.Debugf("Found stack file %s", path) stackFiles = append(stackFiles, path) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.93.10/test/fixtures/regressions/multiple-stacks/live/appv2.terragrunt.stack.hcl new/terragrunt-0.93.11/test/fixtures/regressions/multiple-stacks/live/appv2.terragrunt.stack.hcl --- old/terragrunt-0.93.10/test/fixtures/regressions/multiple-stacks/live/appv2.terragrunt.stack.hcl 1970-01-01 01:00:00.000000000 +0100 +++ new/terragrunt-0.93.11/test/fixtures/regressions/multiple-stacks/live/appv2.terragrunt.stack.hcl 2025-11-24 19:29:45.000000000 +0100 @@ -0,0 +1,10 @@ + +unit "unit3" { + source = "../units/template" + path = "unit3" +} + +unit "unit4" { + source = "../units/template" + path = "unit4" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.93.10/test/fixtures/regressions/multiple-stacks/live/terragrunt.stack.hcl new/terragrunt-0.93.11/test/fixtures/regressions/multiple-stacks/live/terragrunt.stack.hcl --- old/terragrunt-0.93.10/test/fixtures/regressions/multiple-stacks/live/terragrunt.stack.hcl 1970-01-01 01:00:00.000000000 +0100 +++ new/terragrunt-0.93.11/test/fixtures/regressions/multiple-stacks/live/terragrunt.stack.hcl 2025-11-24 19:29:45.000000000 +0100 @@ -0,0 +1,9 @@ +unit "unit1" { + source = "../units/template" + path = "unit1" +} + +unit "unit2" { + source = "../units/template" + path = "unit2" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/terragrunt-0.93.10/test/integration_regressions_test.go new/terragrunt-0.93.11/test/integration_regressions_test.go --- old/terragrunt-0.93.10/test/integration_regressions_test.go 2025-11-20 16:15:08.000000000 +0100 +++ new/terragrunt-0.93.11/test/integration_regressions_test.go 2025-11-24 19:29:45.000000000 +0100 @@ -20,6 +20,7 @@ testFixtureDisabledDependencyEmptyConfigPath = "fixtures/regressions/disabled-dependency-empty-config-path" testFixtureParsingDeprecated = "fixtures/parsing/exposed-include-with-deprecated-inputs" testFixtureSensitiveValues = "fixtures/regressions/sensitive-values" + testFixtureStackDetection = "fixtures/regressions/multiple-stacks" ) func TestNoAutoInit(t *testing.T) { @@ -419,3 +420,23 @@ assert.NotContains(t, runAllStderr, "dependency graph", "run --all should not see dependency graph errors") } + +func TestMultipleStacksDetection(t *testing.T) { + t.Parallel() + + helpers.CleanupTerraformFolder(t, testFixtureStackDetection) + tmpEnvPath := helpers.CopyEnvironment(t, testFixtureStackDetection) + rootPath := util.JoinPath(tmpEnvPath, testFixtureStackDetection, "live") + + _, stderr, err := helpers.RunTerragruntCommandWithOutput(t, "terragrunt stack generate --working-dir "+rootPath) + + require.NoError(t, err) + + assert.Contains(t, stderr, "terragrunt.stack.hcl") + assert.Contains(t, stderr, "unit1") + assert.Contains(t, stderr, "unit2") + + assert.NotContains(t, stderr, "appv2.terragrunt.stack.hcl") + assert.NotContains(t, stderr, "unit4") + assert.NotContains(t, stderr, "unit3") +} ++++++ terragrunt.obsinfo ++++++ --- /var/tmp/diff_new_pack.ximv2s/_old 2025-11-25 17:24:50.718782439 +0100 +++ /var/tmp/diff_new_pack.ximv2s/_new 2025-11-25 17:24:50.726782777 +0100 @@ -1,5 +1,5 @@ name: terragrunt -version: 0.93.10 -mtime: 1763651708 -commit: 25150a61693db8edb1a5eeb173d4de20c2ec25ab +version: 0.93.11 +mtime: 1764008985 +commit: 784117aa3ee23b9b344133215aa803521ff50d11 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/terragrunt/vendor.tar.gz /work/SRC/openSUSE:Factory/.terragrunt.new.14147/vendor.tar.gz differ: char 13, line 1
