Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package terragrunt for openSUSE:Factory 
checked in at 2022-12-03 10:03:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/terragrunt (Old)
 and      /work/SRC/openSUSE:Factory/.terragrunt.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "terragrunt"

Sat Dec  3 10:03:33 2022 rev:21 rq:1039603 version:0.42.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/terragrunt/terragrunt.changes    2022-11-30 
18:53:47.936659483 +0100
+++ /work/SRC/openSUSE:Factory/.terragrunt.new.1835/terragrunt.changes  
2022-12-03 10:03:47.623292707 +0100
@@ -1,0 +2,6 @@
+Fri Dec 02 12:04:24 UTC 2022 - ka...@b1-systems.de
+
+- Update to version 0.42.3:
+  * #2347 - add --terragrunt-global-cache support to run_cmd (#2348)
+
+-------------------------------------------------------------------

Old:
----
  terragrunt-0.42.2.tar.gz

New:
----
  terragrunt-0.42.3.tar.gz

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

Other differences:
------------------
++++++ terragrunt.spec ++++++
--- /var/tmp/diff_new_pack.Q4koiE/_old  2022-12-03 10:03:48.395296997 +0100
+++ /var/tmp/diff_new_pack.Q4koiE/_new  2022-12-03 10:03:48.399297019 +0100
@@ -19,7 +19,7 @@
 %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
 
 Name:           terragrunt
-Version:        0.42.2
+Version:        0.42.3
 Release:        0
 Summary:        Thin wrapper for Terraform for working with multiple Terraform 
modules
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.Q4koiE/_old  2022-12-03 10:03:48.431297197 +0100
+++ /var/tmp/diff_new_pack.Q4koiE/_new  2022-12-03 10:03:48.435297219 +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.42.2</param>
+    <param name="revision">v0.42.3</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
     <param name="versionrewrite-pattern">v(.*)</param>
@@ -16,7 +16,7 @@
     <param name="compression">gz</param>
   </service>
   <service name="go_modules" mode="disabled">
-    <param name="archive">terragrunt-0.42.2.tar.gz</param>
+    <param name="archive">terragrunt-0.42.3.tar.gz</param>
   </service>
 </services>
 

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.Q4koiE/_old  2022-12-03 10:03:48.459297353 +0100
+++ /var/tmp/diff_new_pack.Q4koiE/_new  2022-12-03 10:03:48.463297375 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/gruntwork-io/terragrunt</param>
-              <param 
name="changesrevision">f7dcb4a262f58628909f8264c98abb3f2a4305aa</param></service></servicedata>
+              <param 
name="changesrevision">c3870aa5d1d9279a9f8594e4b2d66f75c8cfa1dd</param></service></servicedata>
 (No newline at EOF)
 

++++++ terragrunt-0.42.2.tar.gz -> terragrunt-0.42.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terragrunt-0.42.2/config/config_helpers.go 
new/terragrunt-0.42.3/config/config_helpers.go
--- old/terragrunt-0.42.2/config/config_helpers.go      2022-11-29 
19:16:54.000000000 +0100
+++ new/terragrunt-0.42.3/config/config_helpers.go      2022-12-02 
11:19:55.000000000 +0100
@@ -294,16 +294,26 @@
        }
 
        suppressOutput := false
-       if args[0] == "--terragrunt-quiet" {
-               suppressOutput = true
-               args = append(args[:0], args[1:]...)
-       }
-
        currentPath := filepath.Dir(terragruntOptions.TerragruntConfigPath)
+       cachePath := currentPath
+
+       checkOptions := true
+       for checkOptions && len(args) > 0 {
+               switch args[0] {
+               case "--terragrunt-quiet":
+                       suppressOutput = true
+                       args = append(args[:0], args[1:]...)
+               case "--terragrunt-global-cache":
+                       cachePath = "_global_"
+                       args = append(args[:0], args[1:]...)
+               default:
+                       checkOptions = false
+               }
+       }
 
        // To avoid re-run of the same run_cmd command, is used in memory cache 
for command results, with caching key path + arguments
        // see: https://github.com/gruntwork-io/terragrunt/issues/1427
-       cacheKey := fmt.Sprintf("%v-%v", currentPath, args)
+       cacheKey := fmt.Sprintf("%v-%v", cachePath, args)
        cachedValue, foundInCache := runCommandCache.Get(cacheKey)
        if foundInCache {
                if suppressOutput {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/terragrunt-0.42.2/config/config_helpers_test.go 
new/terragrunt-0.42.3/config/config_helpers_test.go
--- old/terragrunt-0.42.2/config/config_helpers_test.go 2022-11-29 
19:16:54.000000000 +0100
+++ new/terragrunt-0.42.3/config/config_helpers_test.go 2022-12-02 
11:19:55.000000000 +0100
@@ -189,6 +189,24 @@
                        nil,
                },
                {
+                       []string{"--terragrunt-global-cache", "/bin/bash", 
"-c", "echo foo"},
+                       terragruntOptionsForTest(t, homeDir),
+                       "foo",
+                       nil,
+               },
+               {
+                       []string{"--terragrunt-global-cache", 
"--terragrunt-quiet", "/bin/bash", "-c", "echo foo"},
+                       terragruntOptionsForTest(t, homeDir),
+                       "foo",
+                       nil,
+               },
+               {
+                       []string{"--terragrunt-quiet", 
"--terragrunt-global-cache", "/bin/bash", "-c", "echo foo"},
+                       terragruntOptionsForTest(t, homeDir),
+                       "foo",
+                       nil,
+               },
+               {
                        nil,
                        terragruntOptionsForTest(t, homeDir),
                        "",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/terragrunt-0.42.2/docs/_docs/04_reference/built-in-functions.md 
new/terragrunt-0.42.3/docs/_docs/04_reference/built-in-functions.md
--- old/terragrunt-0.42.2/docs/_docs/04_reference/built-in-functions.md 
2022-11-29 19:16:54.000000000 +0100
+++ new/terragrunt-0.42.3/docs/_docs/04_reference/built-in-functions.md 
2022-12-02 11:19:55.000000000 +0100
@@ -636,7 +636,7 @@
 }
 ```
 
-If the command you are running has the potential to output sensitive values, 
you may wish to redact the output from appearing in the terminal. To do so, use 
the special `--terragrunt-quiet` argument which must be passed as the first 
argument to `run_cmd()`:
+If the command you are running has the potential to output sensitive values, 
you may wish to redact the output from appearing in the terminal. To do so, use 
the special `--terragrunt-quiet` argument which must be passed as one of the 
first arguments to `run_cmd()`:
 
 ``` hcl
 super_secret_value = run_cmd("--terragrunt-quiet", "./decrypt_secret.sh", 
"foo")
@@ -685,6 +685,12 @@
   * Output contains multiple times `uuid3`, +1 more output comparing to 
`uuid1` and `uuid2` - because `uuid3` is declared in locals and inputs which 
add one more evaluation
   * Output contains only once `uuid4` since it is declared only once in 
`inputs`, `inputs` is not evaluated twice
 
+You can modify this caching behavior to ignore the existing directory if you 
know the command you are running is not dependent on the current directory 
path.  To do so, use the special `--terragrunt-global-cache` argument which 
must be passed as one of the first arguments to `run_cmd()` (and can be 
combined with `--terragrunt-quiet` in any order):
+
+``` hcl
+value = run_cmd("--terragrunt-global-cache", "--terragrunt-quiet", 
"/usr/local/bin/get-account-map")
+```
+
 ## read\_terragrunt\_config
 
 `read_terragrunt_config(config_path, [default_val])` parses the terragrunt 
config at the given path and serializes the

++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/terragrunt/vendor.tar.gz 
/work/SRC/openSUSE:Factory/.terragrunt.new.1835/vendor.tar.gz differ: char 5, 
line 1

Reply via email to