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-11-17 17:16:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-prometheus-promu (Old)
and /work/SRC/openSUSE:Factory/.golang-github-prometheus-promu.new.1251
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-github-prometheus-promu"
Tue Nov 17 17:16:35 2026 rev:28 rq:1397861 version:0.21.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-github-prometheus-promu/golang-github-prometheus-promu.changes
2026-06-27 18:05:02.213835804 +0200
+++
/work/SRC/openSUSE:Factory/.golang-github-prometheus-promu.new.1251/golang-github-prometheus-promu.changes
2026-11-17 17:18:10.778994387 +0100
@@ -1,0 +2,6 @@
+Wed Nov 11 06:15:28 UTC 2026 - Johannes Kastl
<[email protected]>
+
+- update to 0.21.0:
+ * [CHANGE] Strip quotes when splitting build parameters #412
+
+-------------------------------------------------------------------
Old:
----
promu-0.20.0.tar.gz
New:
----
promu-0.21.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-github-prometheus-promu.spec ++++++
--- /var/tmp/diff_new_pack.YSruT2/_old 2026-11-17 17:18:12.570069745 +0100
+++ /var/tmp/diff_new_pack.YSruT2/_new 2026-11-17 17:18:12.576069998 +0100
@@ -25,7 +25,7 @@
%define shortname promu
Name: golang-github-prometheus-promu
-Version: 0.20.0
+Version: 0.21.0
Release: 0
Summary: Prometheus Utility Tool
License: Apache-2.0
++++++ promu-0.20.0.tar.gz -> promu-0.21.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.github/dependabot.yml
new/promu-0.21.0/.github/dependabot.yml
--- old/promu-0.20.0/.github/dependabot.yml 2026-06-22 10:36:58.000000000
+0200
+++ new/promu-0.21.0/.github/dependabot.yml 2026-11-10 17:18:39.000000000
+0100
@@ -1,14 +1,49 @@
+###
+# This file is synced from https://github.com/prometheus/prometheus
+###
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
+ cooldown:
+ default-days: 7
+ groups:
+ aws:
+ patterns:
+ - "github.com/aws/*"
+ go.opentelemetry.io:
+ patterns:
+ - "go.opentelemetry.io/*"
+ golang.org-x:
+ patterns:
+ - "golang.org/x/*"
+ k8s.io:
+ patterns:
+ - "k8s.io/*"
+ prometheus:
+ patterns:
+ - "github.com/prometheus/*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
+ cooldown:
+ default-days: 7
+ groups:
+ promci:
+ patterns:
+ - "prometheus/promci*"
+ codeql:
+ patterns:
+ - "github/codeql-action*"
# Exclude configs synced from upstream prometheus/prometheus.
exclude-paths:
+ - .github/workflows/approve-workflows.yml
- .github/workflows/container_description.yml
- .github/workflows/golangci-lint.yml
+ - .github/workflows/govulncheck.yml
+ - .github/workflows/scorecards.yml
+ - .github/workflows/stale.yml
+ - .github/workflows/zizmor.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.github/workflows/approve-workflows.yml
new/promu-0.21.0/.github/workflows/approve-workflows.yml
--- old/promu-0.20.0/.github/workflows/approve-workflows.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/promu-0.21.0/.github/workflows/approve-workflows.yml 2026-11-10
17:18:39.000000000 +0100
@@ -0,0 +1,28 @@
+---
+###
+# This action is synced from https://github.com/prometheus/prometheus
+###
+name: Approve pending workflows
+
+on:
+ # The pinned action requires triage access or higher and only calls GitHub
APIs.
+ issue_comment: # zizmor: ignore[dangerous-triggers]
+ types: [created]
+
+permissions: read-all
+
+jobs:
+ approve:
+ if: >-
+ github.event.issue.pull_request &&
+ github.event.comment.body == '/workflow-approve' &&
+ (github.repository_owner == 'prometheus' || github.repository_owner ==
'prometheus-community')
+ runs-on: ubuntu-latest
+ permissions:
+ actions: write
+ contents: read
+ pull-requests: write
+ steps:
+ - uses:
prometheus/promci/approve_workflows@872d318d090d73df349cb6ed90aadd072ca478f7 #
v0.10.0
+ with:
+ github_token: ${{ github.token }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.github/workflows/ci.yml
new/promu-0.21.0/.github/workflows/ci.yml
--- old/promu-0.20.0/.github/workflows/ci.yml 2026-06-22 10:36:58.000000000
+0200
+++ new/promu-0.21.0/.github/workflows/ci.yml 2026-11-10 17:18:39.000000000
+0100
@@ -19,15 +19,15 @@
env:
PROMU: ./promu-intermediate
steps:
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #
v6.0.2
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
with:
persist-credentials: false
- - name: Install Go
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #
v6.4.0
+ - name: Install Go # zizmor: ignore[cache-poisoning]
+ uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e #
v7.0.0
with:
- go-version: 1.26.x
+ go-version: 1.27.x
- run: go build -o promu-intermediate
- - run: make check_license style unused lint test build
+ - run: make check_license style unused lint test build GO_ONLY=1
SKIP_GOLANGCI_LINT=1
- run: rm -v promu promu-intermediate
- run: git diff --exit-code
@@ -40,16 +40,17 @@
matrix:
thread: [ 0, 1, 2, 3]
steps:
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #
v6.0.2
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
with:
persist-credentials: false
- name: Install Go
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #
v6.4.0
+ uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e #
v7.0.0
with:
- go-version: 1.26.x
+ cache: false
+ go-version: 1.27.x
- run: go build -o promu-intermediate
- run: ./promu-intermediate crossbuild -v --parallelism 4
--parallelism-thread ${{ matrix.thread }}
- - uses:
prometheus/promci-artifacts/save@f9a587dbc0b2c78a0c54f8ad1cde71ea29a4b76f #
v0.1.0
+ - uses:
prometheus/promci-artifacts/save@9ca3252d07f230d5f923452b4df5697eba4a5bee #
v0.1.1
publish_release:
name: Publish release artifacts
@@ -62,6 +63,6 @@
&&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
steps:
- - uses:
prometheus/promci/publish_release@d9d4f5688814f0b77bf003d07fb8c00507390634 #
v0.8.2
+ - uses:
prometheus/promci/publish_release@872d318d090d73df349cb6ed90aadd072ca478f7 #
v0.10.0
with:
github_token: ${{ github.token }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.github/workflows/golangci-lint.yml
new/promu-0.21.0/.github/workflows/golangci-lint.yml
--- old/promu-0.20.0/.github/workflows/golangci-lint.yml 2026-06-22
10:36:58.000000000 +0200
+++ new/promu-0.21.0/.github/workflows/golangci-lint.yml 2026-11-10
17:18:39.000000000 +0100
@@ -26,13 +26,15 @@
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 #
v6.0.3
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
with:
persist-credentials: false
- - name: Install Go
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #
v6.4.0
+ # Go caching is acceptable here because this workflow has a read-only
+ # token, uses no secrets and publishes nothing.
+ - name: Install Go # zizmor: ignore[cache-poisoning]
+ uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e #
v7.0.0
with:
- go-version: 1.26.x
+ go-version: 1.27.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
@@ -40,7 +42,7 @@
id: golangci-lint-version
run: echo "version=$(make print-golangci-lint-version)" >>
$GITHUB_OUTPUT
- name: Lint
- uses:
golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
+ uses:
golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
args: --verbose
version: ${{ steps.golangci-lint-version.outputs.version }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.github/workflows/govulncheck.yml
new/promu-0.21.0/.github/workflows/govulncheck.yml
--- old/promu-0.20.0/.github/workflows/govulncheck.yml 2026-06-22
10:36:58.000000000 +0200
+++ new/promu-0.21.0/.github/workflows/govulncheck.yml 2026-11-10
17:18:39.000000000 +0100
@@ -1,4 +1,7 @@
---
+###
+# This action is synced from https://github.com/prometheus/prometheus
+###
name: govulncheck
on:
pull_request:
@@ -25,6 +28,6 @@
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- id: govulncheck
- uses:
golang/govulncheck-action@3fa7bd9cee2cfdf3499a8803b226e43de7b7cdb4 # master
+ uses:
golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # master
env:
GOOS: ${{ contains(github.repository, 'windows_exporter') &&
'windows' || '' }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.github/workflows/zizmor.yml
new/promu-0.21.0/.github/workflows/zizmor.yml
--- old/promu-0.20.0/.github/workflows/zizmor.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/promu-0.21.0/.github/workflows/zizmor.yml 2026-11-10
17:18:39.000000000 +0100
@@ -0,0 +1,84 @@
+---
+# This workflow runs zizmor to find security issues in GitHub Actions
workflows.
+# It is synchronized from https://github.com/prometheus/prometheus.
+#
+# If the "GitHub Actions Security" check fails:
+#
+# 1. Open the "Run zizmor" step in the failed job. Each finding identifies
+# a rule, the affected file and line, and the reason for the finding.
+# The scan can report existing issues in files your PR did not change.
+#
+# 2. Find guidance for the reported rule at https://docs.zizmor.sh/audits/.
+# Fix the affected workflow and push your changes to rerun the check.
+#
+# 3. To reproduce locally, install the zizmor version specified below using
+# the instructions at https://docs.zizmor.sh/installation/.
+# From the repository root, run `zizmor .`.
+# Some findings can be fixed with `zizmor --fix=safe .`.
+# Review the resulting diff and verify that the workflows still work.
+#
+# If a finding appears incorrect or a fix is unclear, ask the repository
+# maintainers before adding an exception. Document the reason for any exception
+# and keep it scoped to the specific finding. See the configuration reference
+# at https://docs.zizmor.sh/configuration/.
+#
+# Propose changes to this shared workflow in prometheus/prometheus so they
+# can be synchronized across repositories.
+name: GitHub Actions Security
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+ - master
+
+permissions:
+ contents: read
+ actions: read
+
+jobs:
+ zizmor:
+ name: Run zizmor
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
+ with:
+ persist-credentials: false
+
+ - name: Run zizmor
+ id: zizmor
+ uses:
zizmorcore/zizmor-action@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.7.1
+ with:
+ advanced-security: false
+ version: 1.31.1
+
+ - name: Explain how to resolve findings
+ if: failure() && steps.zizmor.outcome == 'failure'
+ run: |
+ cat >> "$GITHUB_STEP_SUMMARY" <<'EOF'
+ ### Troubleshooting GitHub Actions Security
+
+ Open the **Run zizmor** step for the findings or execution error.
+ Each finding identifies the affected file, line, and rule.
+ The scan can report existing issues in files your PR did not change.
+
+ 1. Follow the [guidance for the reported
rule](https://docs.zizmor.sh/audits/).
+ 2. Fix the affected workflow and push your changes to rerun the
check.
+
+ To reproduce locally, [install
zizmor](https://docs.zizmor.sh/installation/)
+ using the version specified in this workflow and run `zizmor .` from
+ the repository root. Some findings can be fixed with `zizmor
--fix=safe .`.
+ Review the resulting diff and verify that the workflows still work.
+
+ If a finding appears incorrect or a fix is unclear, ask the
repository
+ maintainers before adding an exception. Document the reason and keep
+ the exception scoped to the specific finding. See the
+ [configuration reference](https://docs.zizmor.sh/configuration/).
+
+ This workflow is synchronized from
[prometheus/prometheus](https://github.com/prometheus/prometheus).
+ Propose shared workflow changes there so they can reach all
repositories.
+ EOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/.promu.yml new/promu-0.21.0/.promu.yml
--- old/promu-0.20.0/.promu.yml 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/.promu.yml 2026-11-10 17:18:39.000000000 +0100
@@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here,
# .circle/config.yml should also be updated.
- version: 1.26
+ version: 1.27
repository:
path: github.com/prometheus/promu
build:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/CHANGELOG.md
new/promu-0.21.0/CHANGELOG.md
--- old/promu-0.20.0/CHANGELOG.md 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/CHANGELOG.md 2026-11-10 17:18:39.000000000 +0100
@@ -1,3 +1,7 @@
+## 0.21.0 / 2026-11-09
+
+* [CHANGE] Strip quotes when splitting build parameters #412
+
## 0.20.0 / 2026-06-22
* [FEATURE] crossbuild: add --env flag to forward env vars to build containers
#399
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/Makefile.common
new/promu-0.21.0/Makefile.common
--- old/promu-0.20.0/Makefile.common 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/Makefile.common 2026-11-10 17:18:39.000000000 +0100
@@ -55,13 +55,13 @@
endif
endif
-PROMU_VERSION ?= 0.18.1
+PROMU_VERSION ?= 0.20.0
PROMU_URL :=
https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
SKIP_GOLANGCI_LINT :=
GOLANGCI_LINT :=
GOLANGCI_LINT_OPTS ?=
-GOLANGCI_LINT_VERSION ?= v2.11.4
+GOLANGCI_LINT_VERSION ?= v2.14.0
GOLANGCI_FMT_OPTS ?=
# golangci-lint only supports linux, darwin and windows platforms on
i386/amd64/arm64.
# windows isn't included here because of the path separator being different.
@@ -165,8 +165,9 @@
.PHONY: update-go-deps
update-go-deps:
@echo ">> updating Go dependencies"
+ # GOTOOLCHAIN prevents go get from pulling deps that require a newer Go
version.
@for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect)
(not .Main)}}{{.Path}}{{end}}' all); do \
- $(GO) get $$m; \
+ GOTOOLCHAIN=go$$($(GO) mod edit -json | jq -r .Go) $(GO) get
$$m; \
done
$(GO) mod tidy
@@ -246,6 +247,12 @@
.PHONY: common-docker $(BUILD_DOCKER_ARCHS)
common-docker: $(BUILD_DOCKER_ARCHS)
+
+.PHONY: common-docker-current-arch
+common-docker-current-arch:
+ $(MAKE) common-docker-$(GOHOSTARCH)
+
+# DOCKER_ARCHS holds promu architecture names, which are not OCI platform
strings.
$(BUILD_DOCKER_ARCHS): common-docker-%:
@for variant in $(DOCKERFILE_VARIANTS_WITH_NAMES); do \
dockerfile=$${variant#*:}; \
@@ -254,10 +261,16 @@
if [ "$*" = "armv7" ]; then \
distroless_arch="arm"; \
fi; \
+ arch="$*"; \
+ case "$$arch" in \
+ armv*) docker_platform="linux/arm/v$${arch#armv}";; \
+ *) docker_platform="linux/$$arch";; \
+ esac; \
if [ "$$dockerfile" = "Dockerfile" ]; then \
echo "Building default variant ($$variant_name) for
linux-$* using $$dockerfile"; \
docker build -t
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(SANITIZED_DOCKER_IMAGE_TAG)" \
-f $$dockerfile \
+ --platform "$$docker_platform" \
--build-arg ARCH="$*" \
--build-arg OS="linux" \
--build-arg DISTROLESS_ARCH="$$distroless_arch"
\
@@ -271,6 +284,7 @@
echo "Building $$variant_name variant for linux-$*
using $$dockerfile"; \
docker build -t
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(SANITIZED_DOCKER_IMAGE_TAG)-$$variant_name"
\
-f $$dockerfile \
+ --platform "$$docker_platform" \
--build-arg ARCH="$*" \
--build-arg OS="linux" \
--build-arg DISTROLESS_ARCH="$$distroless_arch"
\
@@ -338,8 +352,7 @@
echo "Skipping manifest for $$variant_name
variant (no supported architectures)"; \
continue; \
fi; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create
-a
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(SANITIZED_DOCKER_IMAGE_TAG)-$$variant_name"
$$refs; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(SANITIZED_DOCKER_IMAGE_TAG)-$$variant_name";
\
+ docker buildx imagetools create -t
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(SANITIZED_DOCKER_IMAGE_TAG)-$$variant_name"
$$refs; \
fi; \
if [ "$$dockerfile" = "Dockerfile" ]; then \
echo "Creating default variant ($$variant_name)
manifest"; \
@@ -351,8 +364,7 @@
echo "Skipping default variant manifest (no
supported architectures)"; \
continue; \
fi; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create
-a "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(SANITIZED_DOCKER_IMAGE_TAG)" $$refs; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(SANITIZED_DOCKER_IMAGE_TAG)"; \
+ docker buildx imagetools create -t
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(SANITIZED_DOCKER_IMAGE_TAG)" $$refs; \
fi; \
if [ "$(DOCKER_IMAGE_TAG)" = "latest" ]; then \
if [ "$$dockerfile" != "Dockerfile" ] || [
"$$variant_name" != "default" ]; then \
@@ -365,8 +377,7 @@
echo "Skipping version-tag manifest for
$$variant_name variant (no supported architectures)"; \
continue; \
fi; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest
create -a
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):v$(DOCKER_MAJOR_VERSION_TAG)-$$variant_name"
$$refs; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest
push
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):v$(DOCKER_MAJOR_VERSION_TAG)-$$variant_name";
\
+ docker buildx imagetools create -t
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):v$(DOCKER_MAJOR_VERSION_TAG)-$$variant_name"
$$refs; \
fi; \
if [ "$$dockerfile" = "Dockerfile" ]; then \
echo "Creating default variant version tag
manifest"; \
@@ -378,8 +389,7 @@
echo "Skipping default variant
version-tag manifest (no supported architectures)"; \
continue; \
fi; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest
create -a "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):v$(DOCKER_MAJOR_VERSION_TAG)"
$$refs; \
- DOCKER_CLI_EXPERIMENTAL=enabled docker manifest
push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):v$(DOCKER_MAJOR_VERSION_TAG)"; \
+ docker buildx imagetools create -t
"$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):v$(DOCKER_MAJOR_VERSION_TAG)" $$refs; \
fi; \
fi; \
done
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/VERSION new/promu-0.21.0/VERSION
--- old/promu-0.20.0/VERSION 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/VERSION 2026-11-10 17:18:39.000000000 +0100
@@ -1 +1 @@
-0.20.0
+0.21.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/cmd/crossbuild_tarballs.go
new/promu-0.21.0/cmd/crossbuild_tarballs.go
--- old/promu-0.20.0/cmd/crossbuild_tarballs.go 2026-06-22 10:36:58.000000000
+0200
+++ new/promu-0.21.0/cmd/crossbuild_tarballs.go 2026-11-10 17:18:39.000000000
+0100
@@ -16,6 +16,7 @@
import (
"fmt"
+ "log"
"os"
"path/filepath"
"strings"
@@ -35,9 +36,7 @@
os.Setenv("GOOS", platform[0])
os.Setenv("GOARCH", platform[1])
} else {
- if err := fmt.Errorf("bad .build/%s directory naming,
should be <GOOS>-<GOARCH>", platform); err != nil {
- fatal(err)
- }
+ log.Fatalf("bad .build/%s directory naming, should be
<GOOS>-<GOARCH>", platform)
}
runTarball(filepath.Join(".build", dir.Name()))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/go.mod new/promu-0.21.0/go.mod
--- old/promu-0.20.0/go.mod 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/go.mod 2026-11-10 17:18:39.000000000 +0100
@@ -1,15 +1,15 @@
module github.com/prometheus/promu
-go 1.25.0
+go 1.26.0
require (
github.com/Masterminds/semver/v3 v3.5.0
github.com/alecthomas/kingpin/v2 v2.4.0
github.com/google/go-github/v25 v25.1.3
- github.com/prometheus/common v0.68.1
- go.yaml.in/yaml/v2 v2.4.4
- golang.org/x/oauth2 v0.36.0
- golang.org/x/sync v0.21.0
+ github.com/prometheus/common v0.73.1
+ go.yaml.in/yaml/v2 v2.4.5
+ golang.org/x/oauth2 v0.37.0
+ golang.org/x/sync v0.25.0
)
require (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/go.sum new/promu-0.21.0/go.sum
--- old/promu-0.20.0/go.sum 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/go.sum 2026-11-10 17:18:39.000000000 +0100
@@ -5,17 +5,15 @@
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b
h1:mimo19zliBX/vSQ6PWWSL9lK8qwHozUj03+zLoEB8O0=
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b/go.mod
h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs=
github.com/davecgh/go-spew v1.1.0/go.mod
h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/davecgh/go-spew v1.1.1
h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod
h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/protobuf v1.2.0/go.mod
h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-github/v25 v25.1.3
h1:Ht4YIQgUh4l4lc80fvGnw60khXysXvlgPxPP8uJG3EA=
github.com/google/go-github/v25 v25.1.3/go.mod
h1:6z5pC69qHtrPJ0sXPsj4BLnd82b+r6sLB7qcBoRZqpw=
github.com/google/go-querystring v1.0.0
h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod
h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
-github.com/pmezard/go-difflib v1.0.0
h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod
h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/prometheus/common v0.68.1
h1:omjRRl4QP4komogpXuhfeOiisQg7xdy8VM1UY+pStaY=
-github.com/prometheus/common v0.68.1/go.mod
h1:ZzL3f6u94qUxh9p+tJTrF+FvBS1XXbbRAZCQkytAL0Y=
+github.com/prometheus/common v0.73.1
h1:SZWh/j4AvhCdhX8jvYSnxvPxhWlC9QZkjJ+tOrEr7kU=
+github.com/prometheus/common v0.73.1/go.mod
h1:I9aA/Ukz9s1olOobh8KtCkU7B1mQPQsB9UvQPsUQ1Dk=
github.com/stretchr/objx v0.1.0/go.mod
h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod
h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod
h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
@@ -24,24 +22,25 @@
github.com/stretchr/testify v1.8.0/go.mod
h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod
h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0/go.mod
h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
-github.com/stretchr/testify v1.11.1
h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
-github.com/stretchr/testify v1.11.1/go.mod
h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
+github.com/stretchr/testify v1.12.1
h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
+github.com/stretchr/testify v1.12.1/go.mod
h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
github.com/xhit/go-str2duration/v2 v2.1.0
h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod
h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
-go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ=
-go.yaml.in/yaml/v2 v2.4.4/go.mod
h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ=
+go.yaml.in/yaml/v2 v2.4.5 h1:a5nxWvYi94DRl6QSLlTbLpVmutgx2qg8EVjnJtuFpwI=
+go.yaml.in/yaml/v2 v2.4.5/go.mod
h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ=
+go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
+go.yaml.in/yaml/v3 v3.0.5/go.mod
h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod
h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod
h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod
h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
-golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
-golang.org/x/oauth2 v0.36.0/go.mod
h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
+golang.org/x/oauth2 v0.37.0 h1:JUlcxA8oAtauLfiH8FX2/FkAWHAdi0QtGCGc+hofE98=
+golang.org/x/oauth2 v0.37.0/go.mod
h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58=
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod
h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.21.0 h1:HLII4xRRTtCRkxYp4HNFF0Js/Og6q2i++KXbg0gHCwM=
-golang.org/x/sync v0.21.0/go.mod
h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
+golang.org/x/sync v0.25.0 h1:dJnifr0nMV8/SBnBvdo4eSGGnrc3O4FFx6IqvtLcmRs=
+golang.org/x/sync v0.25.0/go.mod
h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod
h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
google.golang.org/appengine v1.1.0/go.mod
h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod
h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod
h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/util/sh/sh.go
new/promu-0.21.0/util/sh/sh.go
--- old/promu-0.20.0/util/sh/sh.go 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/util/sh/sh.go 2026-11-10 17:18:39.000000000 +0100
@@ -18,8 +18,8 @@
"fmt"
"os"
"os/exec"
- "regexp"
"strings"
+ "unicode"
)
// Verbose enables verbose output
@@ -38,8 +38,39 @@
return cmd.Run()
}
-// SplitParameters splits shell command parameters, taking quoting in account.
+// SplitParameters splits shell command parameters, taking quoting into
account.
+// Single and double quotes group text without becoming part of the parameter.
func SplitParameters(s string) []string {
- r := regexp.MustCompile(`'[^']*'|[^ ]+`)
- return r.FindAllString(s, -1)
+ var (
+ params []string
+ current strings.Builder
+ inParam bool
+ quote rune
+ )
+ for _, r := range s {
+ switch {
+ case quote != 0:
+ if r == quote {
+ quote = 0
+ continue
+ }
+ current.WriteRune(r)
+ case r == '\'' || r == '"':
+ quote = r
+ inParam = true
+ case unicode.IsSpace(r):
+ if inParam {
+ params = append(params, current.String())
+ current.Reset()
+ inParam = false
+ }
+ default:
+ current.WriteRune(r)
+ inParam = true
+ }
+ }
+ if inParam {
+ params = append(params, current.String())
+ }
+ return params
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/promu-0.20.0/util/sh/sh_test.go
new/promu-0.21.0/util/sh/sh_test.go
--- old/promu-0.20.0/util/sh/sh_test.go 2026-06-22 10:36:58.000000000 +0200
+++ new/promu-0.21.0/util/sh/sh_test.go 2026-11-10 17:18:39.000000000 +0100
@@ -14,17 +14,57 @@
package sh
import (
- "strings"
+ "reflect"
"testing"
)
func TestSplitParameters(t *testing.T) {
- in := `-a -tags 'netgo static_build'`
- expect := []string{"-a", "-tags", `'netgo static_build'`}
- got := SplitParameters(in)
- for i, g := range got {
- if expect[i] != g {
- t.Error("expected", expect[i], "got", g, "full output:
", strings.Join(got, "#"))
- }
+ for _, tc := range []struct {
+ name string
+ in string
+ want []string
+ }{
+ {
+ name: "empty",
+ in: "",
+ want: nil,
+ },
+ {
+ name: "blanks only",
+ in: " \t ",
+ want: nil,
+ },
+ {
+ name: "unquoted",
+ in: "-a -tags netgo",
+ want: []string{"-a", "-tags", "netgo"},
+ },
+ {
+ name: "extra blanks",
+ in: " -a \t -mod=vendor ",
+ want: []string{"-a", "-mod=vendor"},
+ },
+ {
+ name: "single quotes",
+ in: `-a -tags 'netgo static_build'`,
+ want: []string{"-a", "-tags", "netgo static_build"},
+ },
+ {
+ name: "double quotes",
+ in: `-a -tags "netgo static_build"`,
+ want: []string{"-a", "-tags", "netgo static_build"},
+ },
+ {
+ name: "quotes attached to the flag",
+ in: `-gcflags="all=-N -l"`,
+ want: []string{"-gcflags=all=-N -l"},
+ },
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ got := SplitParameters(tc.in)
+ if !reflect.DeepEqual(got, tc.want) {
+ t.Errorf("SplitParameters(%q) = %q, want %q",
tc.in, got, tc.want)
+ }
+ })
}
}
++++++ vendor.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/vendor/go.yaml.in/yaml/v2/decode.go
new/vendor/go.yaml.in/yaml/v2/decode.go
--- old/vendor/go.yaml.in/yaml/v2/decode.go 2026-06-22 10:36:58.000000000
+0200
+++ new/vendor/go.yaml.in/yaml/v2/decode.go 2026-11-10 17:18:39.000000000
+0100
@@ -295,7 +295,9 @@
//
// If n holds a null value, prepare returns before doing anything.
func (d *decoder) prepare(n *node, out reflect.Value) (newout reflect.Value,
unmarshaled, good bool) {
- if n.tag == yaml_NULL_TAG || n.kind == scalarNode && n.tag == "" &&
(n.value == "null" || n.value == "~" || n.value == "" && n.implicit) {
+ if n.tag == yaml_NULL_TAG ||
+ n.kind == scalarNode && n.tag == "" && n.implicit &&
+ (n.value == "null" || n.value == "~" || n.value == "") {
return out, false, false
}
again := true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/vendor/modules.txt new/vendor/modules.txt
--- old/vendor/modules.txt 2026-06-22 10:36:58.000000000 +0200
+++ new/vendor/modules.txt 2026-11-10 17:18:39.000000000 +0100
@@ -13,19 +13,19 @@
# github.com/google/go-querystring v1.0.0
## explicit
github.com/google/go-querystring/query
-# github.com/prometheus/common v0.68.1
-## explicit; go 1.25.0
+# github.com/prometheus/common v0.73.1
+## explicit; go 1.26.0
github.com/prometheus/common/version
# github.com/xhit/go-str2duration/v2 v2.1.0
## explicit; go 1.13
github.com/xhit/go-str2duration/v2
-# go.yaml.in/yaml/v2 v2.4.4
+# go.yaml.in/yaml/v2 v2.4.5
## explicit; go 1.15
go.yaml.in/yaml/v2
-# golang.org/x/oauth2 v0.36.0
-## explicit; go 1.25.0
+# golang.org/x/oauth2 v0.37.0
+## explicit; go 1.26.0
golang.org/x/oauth2
golang.org/x/oauth2/internal
-# golang.org/x/sync v0.21.0
-## explicit; go 1.25.0
+# golang.org/x/sync v0.25.0
+## explicit; go 1.26.0
golang.org/x/sync/errgroup