Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tfupdate for openSUSE:Factory 
checked in at 2026-07-15 16:36:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tfupdate (Old)
 and      /work/SRC/openSUSE:Factory/.tfupdate.new.1991 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tfupdate"

Wed Jul 15 16:36:16 2026 rev:8 rq:1365645 version:0.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/tfupdate/tfupdate.changes        2026-07-09 
22:22:21.460225150 +0200
+++ /work/SRC/openSUSE:Factory/.tfupdate.new.1991/tfupdate.changes      
2026-07-15 16:57:28.314738845 +0200
@@ -1,0 +2,6 @@
+Tue Jul 14 11:28:45 UTC 2026 - Johannes Kastl 
<[email protected]>
+
+- Update to version 0.10.2:
+  * Support optional module/provider source hostname prefix
+
+-------------------------------------------------------------------

Old:
----
  tfupdate-0.10.1.obscpio

New:
----
  tfupdate-0.10.2.obscpio

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

Other differences:
------------------
++++++ tfupdate.spec ++++++
--- /var/tmp/diff_new_pack.cwHe11/_old  2026-07-15 16:57:33.138901699 +0200
+++ /var/tmp/diff_new_pack.cwHe11/_new  2026-07-15 16:57:33.138901699 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           tfupdate
-Version:        0.10.1
+Version:        0.10.2
 Release:        0
 Summary:        Update version constraints in your Terraform configurations
 License:        MPL-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.cwHe11/_old  2026-07-15 16:57:33.174902915 +0200
+++ /var/tmp/diff_new_pack.cwHe11/_new  2026-07-15 16:57:33.178903050 +0200
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/minamijoyo/tfupdate.git</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">refs/tags/v0.10.1</param>
+    <param name="revision">refs/tags/v0.10.2</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="versionrewrite-pattern">v(.*)</param>
     <param name="changesgenerate">enable</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.cwHe11/_old  2026-07-15 16:57:33.198903725 +0200
+++ /var/tmp/diff_new_pack.cwHe11/_new  2026-07-15 16:57:33.210904130 +0200
@@ -3,6 +3,6 @@
                 <param 
name="url">https://github.com/minamijoyo/tfupdate</param>
               <param 
name="changesrevision">d78272a9f66b38bfc4d8b06140eba0076d722b1d</param></service><service
 name="tar_scm">
                 <param 
name="url">https://github.com/minamijoyo/tfupdate.git</param>
-              <param 
name="changesrevision">2562a2da90082bca4eee625a975811120e7c0991</param></service></servicedata>
+              <param 
name="changesrevision">304fee8b804ef1cc9f68e61f350dfa811b0e2226</param></service></servicedata>
 (No newline at EOF)
 

++++++ tfupdate-0.10.1.obscpio -> tfupdate-0.10.2.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/CHANGELOG.md 
new/tfupdate-0.10.2/CHANGELOG.md
--- old/tfupdate-0.10.1/CHANGELOG.md    2026-07-09 10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/CHANGELOG.md    2026-07-14 12:25:58.000000000 +0200
@@ -1,5 +1,11 @@
 ## master (Unreleased)
 
+## 0.10.2 (2026/07/14)
+
+NEW FEATURES:
+
+* Support optional module/provider source hostname prefix 
([#163](https://github.com/minamijoyo/tfupdate/pull/163))
+
 ## 0.10.1 (2026/07/09)
 
 ENHANCEMENTS:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/Dockerfile.dev 
new/tfupdate-0.10.2/Dockerfile.dev
--- old/tfupdate-0.10.1/Dockerfile.dev  2026-07-09 10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/Dockerfile.dev  2026-07-14 12:25:58.000000000 +0200
@@ -1,12 +1,9 @@
 ARG TERRAFORM_VERSION=latest
+ARG OPENTOFU_VERSION=1
+
 FROM hashicorp/terraform:$TERRAFORM_VERSION AS terraform
 
-FROM alpine:3.23 AS opentofu
-ARG OPENTOFU_VERSION=latest
-ADD https://get.opentofu.org/install-opentofu.sh /install-opentofu.sh
-RUN chmod +x /install-opentofu.sh
-RUN apk add gpg gpg-agent
-RUN ./install-opentofu.sh --install-method standalone --opentofu-version 
$OPENTOFU_VERSION --install-path /usr/local/bin --symlink-path -
+FROM ghcr.io/opentofu/opentofu:$OPENTOFU_VERSION-minimal AS opentofu
 
 # tfupdate
 FROM golang:1.26-alpine3.23 AS tfupdate
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/README.md 
new/tfupdate-0.10.2/README.md
--- old/tfupdate-0.10.1/README.md       2026-07-09 10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/README.md       2026-07-14 12:25:58.000000000 +0200
@@ -341,11 +341,13 @@
                          owner/repo
                          e.g. terraform-providers/terraform-provider-aws
                        - tfregistryModule:
-                         namespace/name/provider
+                         [hostname/]namespace/name/provider
                          e.g. terraform-aws-modules/vpc/aws
+                              
registry.opentofu.org/terraform-aws-modules/vpc/aws
                        - tfregistryProvider:
-                         namespace/type
+                         [hostname/]namespace/type
                          e.g. hashicorp/aws
+                              registry.opentofu.org/hashicorp/aws
 
 Options:
   -s  --source-type  A type of release data source.
@@ -378,11 +380,13 @@
                          owner/repo
                          e.g. terraform-providers/terraform-provider-aws
                        - tfregistryModule:
-                         namespace/name/provider
+                         [hostname/]namespace/name/provider
                          e.g. terraform-aws-modules/vpc/aws
+                              
registry.opentofu.org/terraform-aws-modules/vpc/aws
                        - tfregistryProvider:
-                         namespace/type
+                         [hostname/]namespace/type
                          e.g. hashicorp/aws
+                              registry.opentofu.org/hashicorp/aws
 
 Options:
   -s  --source-type  A type of release data source.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/command/release_latest.go 
new/tfupdate-0.10.2/command/release_latest.go
--- old/tfupdate-0.10.1/command/release_latest.go       2026-07-09 
10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/command/release_latest.go       2026-07-14 
12:25:58.000000000 +0200
@@ -62,11 +62,13 @@
                          owner/repo
                          e.g. terraform-providers/terraform-provider-aws
                        - tfregistryModule:
-                         namespace/name/provider
+                         [hostname/]namespace/name/provider
                          e.g. terraform-aws-modules/vpc/aws
+                              
registry.opentofu.org/terraform-aws-modules/vpc/aws
                        - tfregistryProvider:
-                         namespace/type
+                         [hostname/]namespace/type
                          e.g. hashicorp/aws
+                              registry.opentofu.org/hashicorp/aws
 
 Options:
   -s  --source-type  A type of release data source.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/command/release_list.go 
new/tfupdate-0.10.2/command/release_list.go
--- old/tfupdate-0.10.1/command/release_list.go 2026-07-09 10:06:44.000000000 
+0200
+++ new/tfupdate-0.10.2/command/release_list.go 2026-07-14 12:25:58.000000000 
+0200
@@ -66,11 +66,13 @@
                          owner/repo
                          e.g. terraform-providers/terraform-provider-aws
                        - tfregistryModule:
-                         namespace/name/provider
+                         [hostname/]namespace/name/provider
                          e.g. terraform-aws-modules/vpc/aws
+                              
registry.opentofu.org/terraform-aws-modules/vpc/aws
                        - tfregistryProvider:
-                         namespace/type
+                         [hostname/]namespace/type
                          e.g. hashicorp/aws
+                              registry.opentofu.org/hashicorp/aws
 
 Options:
   -s  --source-type  A type of release data source.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/compose.yaml 
new/tfupdate-0.10.2/compose.yaml
--- old/tfupdate-0.10.1/compose.yaml    2026-07-09 10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/compose.yaml    2026-07-14 12:25:58.000000000 +0200
@@ -5,7 +5,7 @@
       dockerfile: ./Dockerfile.dev
       args:
         TERRAFORM_VERSION: ${TERRAFORM_VERSION:-latest}
-        OPENTOFU_VERSION: ${OPENTOFU_VERSION:-latest}
+        OPENTOFU_VERSION: ${OPENTOFU_VERSION:-1}
     volumes:
       - ".:/work"
     environment:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/main.go new/tfupdate-0.10.2/main.go
--- old/tfupdate-0.10.1/main.go 2026-07-09 10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/main.go 2026-07-14 12:25:58.000000000 +0200
@@ -14,7 +14,7 @@
 )
 
 // Version is a version number.
-var version = "0.10.1"
+var version = "0.10.2"
 
 // UI is a user interface which is a global variable for mocking.
 var UI cli.Ui
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/release/tfregistry.go 
new/tfupdate-0.10.2/release/tfregistry.go
--- old/tfupdate-0.10.1/release/tfregistry.go   2026-07-09 10:06:44.000000000 
+0200
+++ new/tfupdate-0.10.2/release/tfregistry.go   2026-07-14 12:25:58.000000000 
+0200
@@ -28,8 +28,16 @@
 
 // NewTFRegistryModuleRelease is a factory method which returns an 
TFRegistryModuleRelease instance.
 func NewTFRegistryModuleRelease(source string, config tfregistry.Config) 
(Release, error) {
-       s := strings.SplitN(source, "/", 3)
-       if len(s) != 3 {
+       s := strings.Split(source, "/")
+
+       switch len(s) {
+       case 3:
+               // NAMESPACE/NAME/PROVIDER
+       case 4:
+               // HOSTNAME/NAMESPACE/NAME/PROVIDER
+               config.BaseURL = fmt.Sprintf("https://%s/";, s[0])
+               s = s[1:]
+       default:
                return nil, fmt.Errorf("failed to parse source: %s", source)
        }
 
@@ -89,8 +97,16 @@
 
 // NewTFRegistryProviderRelease is a factory method which returns an 
TFRegistryProviderRelease instance.
 func NewTFRegistryProviderRelease(source string, config tfregistry.Config) 
(Release, error) {
-       s := strings.SplitN(source, "/", 2)
-       if len(s) != 2 {
+       s := strings.Split(source, "/")
+
+       switch len(s) {
+       case 2:
+               // NAMESPACE/TYPE
+       case 3:
+               // HOSTNAME/NAMESPACE/TYPE
+               config.BaseURL = fmt.Sprintf("https://%s/";, s[0])
+               s = s[1:]
+       default:
                return nil, fmt.Errorf("failed to parse source: %s", source)
        }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tfupdate-0.10.1/release/tfregistry_test.go 
new/tfupdate-0.10.2/release/tfregistry_test.go
--- old/tfupdate-0.10.1/release/tfregistry_test.go      2026-07-09 
10:06:44.000000000 +0200
+++ new/tfupdate-0.10.2/release/tfregistry_test.go      2026-07-14 
12:25:58.000000000 +0200
@@ -37,6 +37,7 @@
                namespace string
                name      string
                provider  string
+               baseURL   string
                ok        bool
        }{
                {
@@ -44,6 +45,15 @@
                        namespace: "hoge",
                        name:      "fuga",
                        provider:  "piyo",
+                       baseURL:   "https://registry.terraform.io/";,
+                       ok:        true,
+               },
+               {
+                       source:    "registry.opentofu.org/hoge/fuga/piyo",
+                       namespace: "hoge",
+                       name:      "fuga",
+                       provider:  "piyo",
+                       baseURL:   "https://registry.opentofu.org/";,
                        ok:        true,
                },
                {
@@ -53,6 +63,13 @@
                        provider:  "",
                        ok:        false,
                },
+               {
+                       source:    "hoge/fuga/piyo/hogera/hogehoge",
+                       namespace: "",
+                       name:      "",
+                       provider:  "",
+                       ok:        false,
+               },
        }
 
        for _, tc := range cases {
@@ -73,6 +90,10 @@
                        if r.namespace != tc.namespace || r.name != tc.name || 
r.provider != tc.provider {
                                t.Errorf("NewTFRegistryModuleRelease() with 
source = %s returns (%s, %s, %s), but want (%s, %s, %s)", tc.source, 
r.namespace, r.name, r.provider, tc.namespace, tc.name, tc.provider)
                        }
+
+                       if baseURL := 
r.api.(*tfregistry.Client).BaseURL.String(); baseURL != tc.baseURL {
+                               t.Errorf("NewTFRegistryModuleRelease() with 
source = %s returns BaseURL = %s, but want = %s", tc.source, baseURL, 
tc.baseURL)
+                       }
                }
        }
 }
@@ -82,12 +103,21 @@
                source       string
                namespace    string
                providerType string
+               baseURL      string
                ok           bool
        }{
                {
                        source:       "hoge/piyo",
                        namespace:    "hoge",
                        providerType: "piyo",
+                       baseURL:      "https://registry.terraform.io/";,
+                       ok:           true,
+               },
+               {
+                       source:       "registry.opentofu.org/fuga/piyo",
+                       namespace:    "fuga",
+                       providerType: "piyo",
+                       baseURL:      "https://registry.opentofu.org/";,
                        ok:           true,
                },
                {
@@ -96,6 +126,12 @@
                        providerType: "",
                        ok:           false,
                },
+               {
+                       source:       "hoge/fuga/piyo/hogera",
+                       namespace:    "",
+                       providerType: "",
+                       ok:           false,
+               },
        }
 
        for _, tc := range cases {
@@ -116,6 +152,10 @@
                        if r.namespace != tc.namespace || r.providerType != 
tc.providerType {
                                t.Errorf("NewTFRegistryProviderRelease() with 
source = %s returns (%s, %s), but want (%s, %s)", tc.source, r.namespace, 
r.providerType, tc.namespace, tc.providerType)
                        }
+
+                       if baseURL := 
r.api.(*tfregistry.Client).BaseURL.String(); baseURL != tc.baseURL {
+                               t.Errorf("NewTFRegistryProviderRelease() with 
source = %s returns BaseURL = %s, but want = %s", tc.source, baseURL, 
tc.baseURL)
+                       }
                }
        }
 }

++++++ tfupdate.obsinfo ++++++
--- /var/tmp/diff_new_pack.cwHe11/_old  2026-07-15 16:57:33.438911827 +0200
+++ /var/tmp/diff_new_pack.cwHe11/_new  2026-07-15 16:57:33.454912367 +0200
@@ -1,5 +1,5 @@
 name: tfupdate
-version: 0.10.1
-mtime: 1783584404
-commit: 2562a2da90082bca4eee625a975811120e7c0991
+version: 0.10.2
+mtime: 1784024758
+commit: 304fee8b804ef1cc9f68e61f350dfa811b0e2226
 

++++++ vendor.tar.gz ++++++

Reply via email to