Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package golang-github-prometheus-promu for 
openSUSE:Factory checked in at 2026-06-27 18:04:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-promu (Old)
 and      /work/SRC/openSUSE:Factory/.golang-github-prometheus-promu.new.11887 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "golang-github-prometheus-promu"

Sat Jun 27 18:04:04 2026 rev:27 rq:1361771 version:0.20.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/golang-github-prometheus-promu/golang-github-prometheus-promu.changes
    2026-06-16 13:48:11.280111909 +0200
+++ 
/work/SRC/openSUSE:Factory/.golang-github-prometheus-promu.new.11887/golang-github-prometheus-promu.changes
 2026-06-27 18:05:02.213835804 +0200
@@ -1,0 +2,7 @@
+Mon Jun 22 10:50:29 UTC 2026 - Johannes Kastl 
<[email protected]>
+
+- update to 0.20.0:
+  * [FEATURE] crossbuild: add --env flag to forward env vars to build
+    containers #399
+
+-------------------------------------------------------------------

Old:
----
  promu-0.19.0.tar.gz

New:
----
  promu-0.20.0.tar.gz

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

Other differences:
------------------
++++++ golang-github-prometheus-promu.spec ++++++
--- /var/tmp/diff_new_pack.2LJkTT/_old  2026-06-27 18:05:03.853890783 +0200
+++ /var/tmp/diff_new_pack.2LJkTT/_new  2026-06-27 18:05:03.857890916 +0200
@@ -25,7 +25,7 @@
 %define shortname promu
 
 Name:           golang-github-prometheus-promu
-Version:        0.19.0
+Version:        0.20.0
 Release:        0
 Summary:        Prometheus Utility Tool
 License:        Apache-2.0

++++++ promu-0.19.0.tar.gz -> promu-0.20.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/promu-0.19.0/.github/workflows/golangci-lint.yml 
new/promu-0.20.0/.github/workflows/golangci-lint.yml
--- old/promu-0.19.0/.github/workflows/golangci-lint.yml        2026-06-11 
15:47:01.000000000 +0200
+++ new/promu-0.20.0/.github/workflows/golangci-lint.yml        2026-06-22 
10:36:58.000000000 +0200
@@ -26,7 +26,7 @@
     runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
-        uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 
v6.0.2
+        uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 
v6.0.3
         with:
           persist-credentials: false
       - name: Install Go
@@ -40,7 +40,7 @@
         id: golangci-lint-version
         run: echo "version=$(make print-golangci-lint-version)" >> 
$GITHUB_OUTPUT
       - name: Lint
-        uses: 
golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
+        uses: 
golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
         with:
           args: --verbose
           version: ${{ steps.golangci-lint-version.outputs.version }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/promu-0.19.0/.github/workflows/govulncheck.yml 
new/promu-0.20.0/.github/workflows/govulncheck.yml
--- old/promu-0.19.0/.github/workflows/govulncheck.yml  2026-06-11 
15:47:01.000000000 +0200
+++ new/promu-0.20.0/.github/workflows/govulncheck.yml  2026-06-22 
10:36:58.000000000 +0200
@@ -20,7 +20,11 @@
     runs-on: ubuntu-latest
     name: Run govulncheck
     steps:
+      - name: Install snmp_exporter/generator dependencies
+        id: snmp-deps
+        run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
+        if: github.repository == 'prometheus/snmp_exporter'
       - id: govulncheck
-        uses: 
golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
+        uses: 
golang/govulncheck-action@3fa7bd9cee2cfdf3499a8803b226e43de7b7cdb4 # master
         env:
           GOOS: ${{ contains(github.repository, 'windows_exporter') && 
'windows' || '' }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/promu-0.19.0/CHANGELOG.md 
new/promu-0.20.0/CHANGELOG.md
--- old/promu-0.19.0/CHANGELOG.md       2026-06-11 15:47:01.000000000 +0200
+++ new/promu-0.20.0/CHANGELOG.md       2026-06-22 10:36:58.000000000 +0200
@@ -1,3 +1,7 @@
+## 0.20.0 / 2026-06-22
+
+* [FEATURE] crossbuild: add --env flag to forward env vars to build containers 
#399
+
 ## 0.19.0 / 2026-06-11
 
 * [FEATURE] crossbuild: add --pull flag to control image pulling #394
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/promu-0.19.0/VERSION new/promu-0.20.0/VERSION
--- old/promu-0.19.0/VERSION    2026-06-11 15:47:01.000000000 +0200
+++ new/promu-0.20.0/VERSION    2026-06-22 10:36:58.000000000 +0200
@@ -1 +1 @@
-0.19.0
+0.20.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/promu-0.19.0/cmd/crossbuild.go 
new/promu-0.20.0/cmd/crossbuild.go
--- old/promu-0.19.0/cmd/crossbuild.go  2026-06-11 15:47:01.000000000 +0200
+++ new/promu-0.20.0/cmd/crossbuild.go  2026-06-22 10:36:58.000000000 +0200
@@ -96,12 +96,16 @@
                        return nil
                }).Strings()
        containerEngine = "docker"
+       envFlag         = crossbuildcmd.Flag("env", "Environment variable 
(NAME=value) to pass to the build container, may be used multiple 
times.").Short('e').Strings()
        podmanFlag      = crossbuildcmd.Flag("podman", "Use podman instead of 
docker for crossbuild containers.").Bool()
        pullFlag        = crossbuildcmd.Flag("pull", "Pull the builder Docker 
image before building.").Default("true").Bool()
        // kingpin doesn't currently support using the crossbuild command and 
the
        // crossbuild tarball subcommand at the same time, so we treat the
        // tarball subcommand as an optional arg
        tarballsSubcommand = crossbuildcmd.Arg("tarballs", "Optionally pass the 
string \"tarballs\" from cross-built binaries").String()
+
+       // envVarRE matches a NAME=value environment variable assignment.
+       envVarRE = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_]*=`)
 )
 
 func runCrossbuild() {
@@ -130,6 +134,12 @@
                config.Crossbuild.Platforms = *platformsFlag
        }
 
+       for _, env := range *envFlag {
+               if !envVarRE.MatchString(env) {
+                       log.Fatalf("invalid --env value %q, expected 
NAME=value", env)
+               }
+       }
+
        var (
                allPlatforms     []string
                unknownPlatforms []string
@@ -219,11 +229,14 @@
        }
 
        ctrName := "promu-crossbuild-" + pg.Name + 
strconv.FormatInt(time.Now().Unix(), 10) + "-" + strconv.Itoa(p)
-       err = sh.RunCommand(containerEngine, "create", "-t",
-               "--name", ctrName,
-               pg.DockerImage,
-               "-i", repoPath,
-               "-p", platformsParam)
+       createArgs := []string{"create", "-t", "--name", ctrName}
+       // Forward environment variables so the in-container build can reuse 
them,
+       // e.g. PREBUILT_ASSETS_STATIC_DIR to point at pre-built assets.
+       for _, env := range *envFlag {
+               createArgs = append(createArgs, "-e", env)
+       }
+       createArgs = append(createArgs, pg.DockerImage, "-i", repoPath, "-p", 
platformsParam)
+       err = sh.RunCommand(containerEngine, createArgs...)
        if err != nil {
                return err
        }

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

Reply via email to