Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opentofu for openSUSE:Factory 
checked in at 2026-11-24 12:41:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opentofu (Old)
 and      /work/SRC/openSUSE:Factory/.opentofu.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opentofu"

Tue Nov 24 12:41:45 2026 rev:59 rq:1400193 version:1.13.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/opentofu/opentofu.changes        2026-11-06 
19:53:16.473369309 +0100
+++ /work/SRC/openSUSE:Factory/.opentofu.new.1340718/opentofu.changes   
2026-11-24 12:47:21.743663417 +0100
@@ -1,0 +2,15 @@
+Tue Nov 24 05:57:48 UTC 2026 - Johannes Kastl 
<[email protected]>
+
+- Update to version 1.13.10:
+  * SECURITY ADVISORIES:
+    - Upgrade Go toolchain to 1.27.4 to address GO-2026-6859, an
+      HTTP/1 server crash due to a MaxBytesReader header race.
+      (#4831)
+  * BUG FIXES:
+    - Overriding resources for indexed modules now works correctly
+      during tofu test. (#4859)
+    - Fix symbol libraries preventing plan when used in modules.
+      (#4816
+    - Fix symbol libraries crash when uninitialized. (#4861)
+
+-------------------------------------------------------------------

Old:
----
  opentofu-1.13.9.obscpio

New:
----
  opentofu-1.13.10.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opentofu.spec ++++++
--- /var/tmp/diff_new_pack.Uynuot/_old  2026-11-24 12:47:23.824751616 +0100
+++ /var/tmp/diff_new_pack.Uynuot/_new  2026-11-24 12:47:23.828751786 +0100
@@ -19,7 +19,7 @@
 %define executable_name tofu
 
 Name:           opentofu
-Version:        1.13.9
+Version:        1.13.10
 Release:        0
 Summary:        Declaratively manage your cloud infrastructure
 License:        MPL-2.0
@@ -29,7 +29,7 @@
 Source1:        vendor.tar.gz
 Source99:       opentofu-rpmlintrc
 BuildRequires:  bash-completion
-BuildRequires:  go1.27 >= 1.27.3
+BuildRequires:  go1.27 >= 1.27.4
 BuildRequires:  golang-packaging
 # See: https://github.com/hashicorp/opentofu/issues/22807
 ExcludeArch:    %{ix86} %{arm}

++++++ _service ++++++
--- /var/tmp/diff_new_pack.Uynuot/_old  2026-11-24 12:47:23.905755049 +0100
+++ /var/tmp/diff_new_pack.Uynuot/_new  2026-11-24 12:47:23.912755346 +0100
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/opentofu/opentofu.git</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">refs/tags/v1.13.9</param>
+    <param name="revision">refs/tags/v1.13.10</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="versionrewrite-pattern">v(.*)</param>
     <param name="changesgenerate">enable</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.Uynuot/_old  2026-11-24 12:47:23.957757253 +0100
+++ /var/tmp/diff_new_pack.Uynuot/_new  2026-11-24 12:47:23.963757507 +0100
@@ -3,6 +3,6 @@
                 <param name="url">https://github.com/opentofu/opentofu/</param>
               <param 
name="changesrevision">bdcbf091aab886499ed7718d7f558b428fffce39</param></service><service
 name="tar_scm">
                 <param 
name="url">https://github.com/opentofu/opentofu.git</param>
-              <param 
name="changesrevision">c83e7e50daff10ac704cb0811e9ffd0ad2523759</param></service></servicedata>
+              <param 
name="changesrevision">4dcfb2efaaf7d3e95a92d1c10b7fd000e82bc51f</param></service></servicedata>
 (No newline at EOF)
 

++++++ opentofu-1.13.9.obscpio -> opentofu-1.13.10.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentofu-1.13.9/CHANGELOG.md 
new/opentofu-1.13.10/CHANGELOG.md
--- old/opentofu-1.13.9/CHANGELOG.md    2026-11-05 16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/CHANGELOG.md   2026-11-23 19:59:18.000000000 +0100
@@ -1,6 +1,18 @@
 The v1.13.x release series is supported until **August 1 2027**.
 
-## 1.13.10 (Unreleased)
+## 1.13.11 (Unreleased)
+
+## 1.13.10
+
+SECURITY ADVISORIES:
+
+- Upgrade Go toolchain to 1.27.4 to address GO-2026-6859, an HTTP/1 server 
crash due to a MaxBytesReader header race. 
([#4831](https://github.com/opentofu/opentofu/pull/4831))
+
+BUG FIXES:
+
+- Overriding resources for indexed modules now works correctly during `tofu 
test`. ([#4859](https://github.com/opentofu/opentofu/pull/4859))
+- Fix symbol libraries preventing plan when used in modules. 
([#4816](https://github.com/opentofu/opentofu/pull/4816)
+- Fix symbol libraries crash when uninitialized. 
([#4861](https://github.com/opentofu/opentofu/pull/4861))
 
 ## 1.13.9
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentofu-1.13.9/go.mod new/opentofu-1.13.10/go.mod
--- old/opentofu-1.13.9/go.mod  2026-11-05 16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/go.mod 2026-11-23 19:59:18.000000000 +0100
@@ -1,6 +1,6 @@
 module github.com/opentofu/opentofu
 
-go 1.27.3
+go 1.27.4
 
 // At the time of adding this configuration, the new Go feature introduced 
here https://github.com/golang/go/issues/67061,
 // was having a good amount of issues linked to, affecting AWS Firewall, GCP 
various services and a lot more.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentofu-1.13.9/internal/command/test_test.go 
new/opentofu-1.13.10/internal/command/test_test.go
--- old/opentofu-1.13.9/internal/command/test_test.go   2026-11-05 
16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/internal/command/test_test.go  2026-11-23 
19:59:18.000000000 +0100
@@ -1704,6 +1704,10 @@
                        expected: "3 passed, 0 failed.",
                        code:     0,
                },
+               "module_provider": {
+                       expected: "3 passed, 0 failed.",
+                       code:     0,
+               },
        }
 
        providerSource, close := newMockProviderSource(t, map[string][]string{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opentofu-1.13.9/internal/command/testdata/test/override_instance_module_provider/main_provider.tftest.hcl
 
new/opentofu-1.13.10/internal/command/testdata/test/override_instance_module_provider/main_provider.tftest.hcl
--- 
old/opentofu-1.13.9/internal/command/testdata/test/override_instance_module_provider/main_provider.tftest.hcl
       1970-01-01 01:00:00.000000000 +0100
+++ 
new/opentofu-1.13.10/internal/command/testdata/test/override_instance_module_provider/main_provider.tftest.hcl
      2026-11-23 19:59:18.000000000 +0100
@@ -0,0 +1,29 @@
+mock_provider "test" {
+    override_resource {
+        target = module.dog_houses.test_resource.dogs
+        values = {
+            id = "Puppy"
+        }
+    }
+}
+
+run "test_a" {
+    assert {
+        condition     = strcontains(output.dino_a_greeting, "Hey there, Puppy")
+        error_message = "Woops thats not what that output should be"
+    }
+}
+
+run "test_b" {
+    assert {
+        condition     = strcontains(output.astro_b_greeting, "Avast, Puppy")
+        error_message = "Woops thats not what that output should be"
+    }
+}
+
+run "test_c" {
+    assert {
+        condition     = strcontains(output.scoob_c_greeting, "Jinkies, Puppy")
+        error_message = "Woops thats not what that output should be"
+    }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opentofu-1.13.9/internal/configs/configload/loader_snapshot.go 
new/opentofu-1.13.10/internal/configs/configload/loader_snapshot.go
--- old/opentofu-1.13.9/internal/configs/configload/loader_snapshot.go  
2026-11-05 16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/internal/configs/configload/loader_snapshot.go 
2026-11-23 19:59:18.000000000 +0100
@@ -41,6 +41,26 @@
        addDiags := l.addModuleToSnapshot(snap, "", rootDir, "", nil)
        diags = append(diags, addDiags...)
 
+       // Inject the source contents into the snapshot
+       sources := l.Sources() // should be populated with all the files we 
need by now
+       for _, snapMod := range snap.Modules {
+               for _, filePath := range snapMod.FilePaths {
+                       filename := filepath.Base(filePath)
+                       src, exists := sources[filePath]
+                       if !exists {
+                               diags = append(diags, &hcl.Diagnostic{
+                                       Severity: hcl.DiagError,
+                                       Summary:  "Missing source file for 
snapshot",
+                                       Detail:   fmt.Sprintf("The source code 
for file %s could not be found to produce a configuration snapshot.", filePath),
+                               })
+                               continue
+                       }
+                       snapMod.Files[filepath.Clean(filename)] = src.Bytes
+               }
+               // No-longer needed, clearing also makes testing easier
+               snapMod.FilePaths = nil
+       }
+
        l.lastLoadedRoot = cfg
 
        return cfg, snap, diags
@@ -109,6 +129,11 @@
        // module to a raw byte representation of the source file contents.
        Files map[string][]byte
 
+       // FilePaths is a list of the full paths of the files within the module
+       // This is populated during the walk and used to fill in Files once
+       // all the sources have been loaded
+       FilePaths []string `json:"-"`
+
        // SourceAddr is the source address given for this module in 
configuration.
        SourceAddr string `json:"Source"`
 
@@ -189,20 +214,8 @@
        files = append(files, primaryFiles...)
        files = append(files, overrideFiles...)
        files = append(files, symbolFiles...)
-       sources := l.Sources() // should be populated with all the files we 
need by now
-       for _, filePath := range files {
-               filename := filepath.Base(filePath)
-               src, exists := sources[filePath]
-               if !exists {
-                       diags = append(diags, &hcl.Diagnostic{
-                               Severity: hcl.DiagError,
-                               Summary:  "Missing source file for snapshot",
-                               Detail:   fmt.Sprintf("The source code for file 
%s could not be found to produce a configuration snapshot.", filePath),
-                       })
-                       continue
-               }
-               snapMod.Files[filepath.Clean(filename)] = src.Bytes
-       }
+       snapMod.FilePaths = files
+       // Files will be populated later
 
        snap.Modules[key] = snapMod
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opentofu-1.13.9/internal/configs/symlib/compiler_test.go 
new/opentofu-1.13.10/internal/configs/symlib/compiler_test.go
--- old/opentofu-1.13.9/internal/configs/symlib/compiler_test.go        
2026-11-05 16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/internal/configs/symlib/compiler_test.go       
2026-11-23 19:59:18.000000000 +0100
@@ -470,29 +470,6 @@
 
        for _, tc := range cases {
                t.Run(tc.name, func(t *testing.T) {
-                       // Parse files into "directory" structure
-                       files := map[string][]*SymbolFile{}
-                       for path, contents := range tc.files {
-                               parts := strings.Split(path, "/")
-                               fileName := parts[len(parts)-1]
-                               dir := strings.Join(parts[:len(parts)-1], "/") 
+ "/"
-
-                               parsed, diags := 
hclsyntax.ParseConfig([]byte(contents), fileName, hcl.InitialPos)
-                               assertNoDiags(t, diags)
-
-                               sFile, diags := LoadSymbolFile(parsed.Body)
-                               assertNoDiags(t, diags)
-
-                               files[dir] = append(files[dir], sFile)
-                       }
-
-                       var loader Loader
-                       loader = func(call *SymbolCall) (*Library, 
hcl.Diagnostics) {
-                               var source string
-                               diags := gohcl.DecodeExpression(call.Source, 
nil, &source)
-                               assertNoDiags(t, diags)
-                               return CompileLibrary(files[source], loader, 
testCtyFuncs)
-                       }
                        lib, diags := testCompile(tc.files)
                        assertNoDiags(t, diags)
                        tc.assert(t, lib)
@@ -613,31 +590,55 @@
 
        for _, tc := range cases {
                t.Run(tc.name, func(t *testing.T) {
-                       // Parse files into "directory" structure
-                       files := map[string][]*SymbolFile{}
-                       for path, contents := range tc.files {
-                               parts := strings.Split(path, "/")
-                               fileName := parts[len(parts)-1]
-                               dir := strings.Join(parts[:len(parts)-1], "/") 
+ "/"
-
-                               parsed, diags := 
hclsyntax.ParseConfig([]byte(contents), fileName, hcl.InitialPos)
-                               assertNoDiags(t, diags)
-
-                               sFile, diags := LoadSymbolFile(parsed.Body)
-                               assertNoDiags(t, diags)
-
-                               files[dir] = append(files[dir], sFile)
-                       }
-
-                       var loader Loader
-                       loader = func(call *SymbolCall) (*Library, 
hcl.Diagnostics) {
-                               var source string
-                               diags := gohcl.DecodeExpression(call.Source, 
nil, &source)
-                               assertNoDiags(t, diags)
-                               return CompileLibrary(files[source], loader, 
testCtyFuncs)
-                       }
                        _, diags := testCompile(tc.files)
                        tc.assert(t, diags)
                })
        }
 }
+
+// TestMissingTypeConversion ensures that different type missing scenarios 
don't
+// cause panics and correctly return diagnostics
+func TestMissingTypeConversion(t *testing.T) {
+       testFiles := map[string]string{"./contents.sym.hcl": `typedef "foo" { 
type = symbols::bar() } `}
+       lib, diags := testCompile(testFiles)
+       if !diags.HasErrors() {
+               t.Error("Expected errors")
+       }
+       table := Table{"lib": lib}
+
+       cases := []struct {
+               name  string
+               tname string
+       }{{
+               name:  "missing dependent type",
+               tname: "symbols::lib::foo()",
+       }, {
+               name:  "missing type",
+               tname: "symbols::lib::undef()",
+       }, {
+               name:  "missing library",
+               tname: "symbols::missing::ty()",
+       }}
+
+       for _, tc := range cases {
+               t.Run(tc.name, func(t *testing.T) {
+                       defer func() {
+                               err := recover()
+                               if err != nil {
+                                       t.Fatal("unexpected panic", err)
+                               }
+                       }()
+                       typeCtx := table.TypeContext()
+
+                       expr, diags := 
hclsyntax.ParseExpression([]byte("object({a = optional(symbols::bar::foo(), 
5)})"), "", hcl.InitialPos)
+                       if diags.HasErrors() {
+                               t.Error("Expected no errors")
+                       }
+
+                       _, _, diags = typeCtx.TypeConstraintWithDefaults(expr)
+                       if !diags.HasErrors() {
+                               t.Error("Expected errors")
+                       }
+               })
+       }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentofu-1.13.9/internal/configs/symlib/library.go 
new/opentofu-1.13.10/internal/configs/symlib/library.go
--- old/opentofu-1.13.9/internal/configs/symlib/library.go      2026-11-05 
16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/internal/configs/symlib/library.go     2026-11-23 
19:59:18.000000000 +0100
@@ -48,7 +48,8 @@
 func (l Library) typeWithDefaults(name string, rng hcl.Range) (cty.Type, 
*typeexpr.Defaults, hcl.Diagnostics) {
        tyd, ok := l.types[name]
        if !ok {
-               return cty.NilType, nil, hcl.Diagnostics{{
+               // We must return *some* valid type here even if there are 
diags.
+               return cty.DynamicPseudoType, nil, hcl.Diagnostics{{
                        Severity: hcl.DiagError,
                        Summary:  "Missing type",
                        Detail:   fmt.Sprintf("Type %s not defined in symbol 
library %s", name, l.name),
@@ -94,7 +95,8 @@
 func (t Table) Type(ref TypeRef) (cty.Type, *typeexpr.Defaults, 
hcl.Diagnostics) {
        lib, diags := t.library(ref.Namespace, ref.Range)
        if diags.HasErrors() {
-               return cty.NilType, nil, diags
+               // We must return *some* valid type here even if there are 
diags.
+               return cty.DynamicPseudoType, nil, diags
        }
        return lib.typeWithDefaults(ref.Name, ref.Range)
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opentofu-1.13.9/internal/tofu/node_resource_abstract_instance.go 
new/opentofu-1.13.10/internal/tofu/node_resource_abstract_instance.go
--- old/opentofu-1.13.9/internal/tofu/node_resource_abstract_instance.go        
2026-11-05 16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/internal/tofu/node_resource_abstract_instance.go       
2026-11-23 19:59:18.000000000 +0100
@@ -3230,7 +3230,7 @@
                trie := addrs.NewOverrideTrie[map[string]cty.Value]()
                // Overridden by the provider (overrides mocks)
                for _, res := range n.ResolvedProvider.OverrideResources {
-                       if 
res.TargetParsed.AffectedAbsResource().Equal(n.Addr.AffectedAbsResource()) && 
res.Mode == n.Addr.AffectedAbsResource().Resource.Mode {
+                       if 
res.TargetParsed.ConfigResource().Equal(n.Addr.ConfigResource()) {
                                trie.Set(res.TargetParsed, res.Values, 
res.Target.SourceRange().Ptr())
                        }
                }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentofu-1.13.9/version/VERSION 
new/opentofu-1.13.10/version/VERSION
--- old/opentofu-1.13.9/version/VERSION 2026-11-05 16:49:34.000000000 +0100
+++ new/opentofu-1.13.10/version/VERSION        2026-11-23 19:59:18.000000000 
+0100
@@ -1 +1 @@
-1.13.9
+1.13.10

++++++ opentofu.obsinfo ++++++
--- /var/tmp/diff_new_pack.Uynuot/_old  2026-11-24 12:47:26.026844943 +0100
+++ /var/tmp/diff_new_pack.Uynuot/_new  2026-11-24 12:47:26.033845240 +0100
@@ -1,5 +1,5 @@
 name: opentofu
-version: 1.13.9
-mtime: 1793893774
-commit: c83e7e50daff10ac704cb0811e9ffd0ad2523759
+version: 1.13.10
+mtime: 1795460358
+commit: 4dcfb2efaaf7d3e95a92d1c10b7fd000e82bc51f
 

++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/opentofu/vendor.tar.gz 
/work/SRC/openSUSE:Factory/.opentofu.new.1340718/vendor.tar.gz differ: char 
132, line 3

Reply via email to