diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-08-13 12:42:21 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-08-13 12:52:30 +0100 |
| commit | 95aee1df137edfc5120410f6b2453743cd63f166 (patch) | |
| tree | 80d010379d68a771fdd73fd5f2e0b26858df0f91 /gnu | |
| parent | bdc7a24abca1891705a53ffa8a0fabbb7f3403ad (diff) | |
gnu: go-github-com-prometheus-alertmanager: Update to 0.31.1.
* gnu/packages/prometheus.scm (go-github-com-prometheus-alertmanager): Update to 0.31.1.
[source] <snippet>: Drop it.
[arguments] <#:unpack-path>: Provide to simplify cmd build.
<#:test-subdir>: Run tests over whole project.
<#:test-flags>: Skip problematic tests.
[phases] {remove-examples}: Swapt import-path with unpack-path.
{remove-broken-tests}: New phase.
[propagated-inputs]: Remove go-github-com-aws-aws-sdk-go,
go-github-com-coder-quartz, go-github-com-gofrs-uuid,
go-github-com-oklog-ulid, and go-github-com-prometheus-common-assets;
add go-github-com-aws-aws-sdk-go-v2,
go-github-com-aws-aws-sdk-go-v2-config,
go-github-com-aws-aws-sdk-go-v2-credentials,
go-github-com-aws-aws-sdk-go-v2-service-sns,
go-github-com-aws-aws-sdk-go-v2-service-sts,
go-github-com-aws-smithy-go, go-github-com-google-uuid,
go-github-com-oklog-ulid-v2,
go-go-opentelemetry-io-contrib-instrumentation-net-http-httptrace-otelhttptrace,
go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp,
go-go-opentelemetry-io-otel,
go-go-opentelemetry-io-otel-exporters-otlp-otlptrace,
go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc,
go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp,
go-go-opentelemetry-io-otel-sdk, go-go-opentelemetry-io-otel-trace, and
go-google-golang-org-grpc.
[native-inputs]: Remove go-go-uber-org-atomic.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/prometheus.scm | 125 |
1 files changed, 70 insertions, 55 deletions
diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 7167c33d1eb..bff3412ed3b 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm | |||
| @@ -193,7 +193,7 @@ registry.") | |||
| 193 | (define-public go-github-com-prometheus-alertmanager | 193 | (define-public go-github-com-prometheus-alertmanager |
| 194 | (package | 194 | (package |
| 195 | (name "go-github-com-prometheus-alertmanager") | 195 | (name "go-github-com-prometheus-alertmanager") |
| 196 | (version "0.28.1") | 196 | (version "0.31.1") ;XXX: newer versions depend on buf |
| 197 | (source | 197 | (source |
| 198 | (origin | 198 | (origin |
| 199 | (method git-fetch) | 199 | (method git-fetch) |
| @@ -202,70 +202,79 @@ registry.") | |||
| 202 | (commit (string-append "v" version)))) | 202 | (commit (string-append "v" version)))) |
| 203 | (file-name (git-file-name name version)) | 203 | (file-name (git-file-name name version)) |
| 204 | (sha256 | 204 | (sha256 |
| 205 | (base32 "1zar5l92a0f3ghm7ndijadzjm6va1qpnxksrah7pxza95pnx0wfq")) | 205 | (base32 "0r791bcj8sbxfjwiwwxik27q57lb19018p1zlbaczg3ljrp3chqy")))) |
| 206 | (modules '((guix build utils))) | ||
| 207 | (snippet | ||
| 208 | #~(begin | ||
| 209 | ;; TODO: UI is shipped with JS/TS, CSS, and font libraries | ||
| 210 | ;; required to build CLI <cmd/alertmanager>: | ||
| 211 | ;; - ui/app/lib/bootstrap-4.0.0-alpha.6-dist/css | ||
| 212 | ;; - ui/app/lib/elm-datepicker/css | ||
| 213 | ;; - ui/app/lib/font-awesome-4.7.0 | ||
| 214 | ;; - ui/react-app | ||
| 215 | (delete-file-recursively "ui"))))) | ||
| 216 | (build-system go-build-system) | 206 | (build-system go-build-system) |
| 217 | (arguments | 207 | (arguments |
| 218 | (list | 208 | (list |
| 219 | #:skip-build? #t | 209 | #:skip-build? #t |
| 220 | #:import-path "github.com/prometheus/alertmanager" | 210 | #:import-path "github.com/prometheus/alertmanager" |
| 211 | #:unpack-path "github.com/prometheus/alertmanager" | ||
| 221 | #:embed-files #~(list ".*\\.css" ".*\\.html" ".*\\.json") | 212 | #:embed-files #~(list ".*\\.css" ".*\\.html" ".*\\.json") |
| 222 | ;; XXX: Enable all when UI is packaged. | 213 | #:test-flags |
| 223 | #:test-subdirs #~(list "api/v2" | 214 | #~(list "-skip" (string-join |
| 224 | "cli/config" | 215 | ;; Tests expecting alertmanager binary. |
| 225 | "dispatch" | 216 | (list "TestAddAlerts" |
| 226 | "featurecontrol" | 217 | "TestAddSilence" |
| 227 | "inhibit" | 218 | "TestAddUTF8Alerts" |
| 228 | "matcher/compliance" | 219 | "TestAddUTF8Silences" |
| 229 | "matcher/parse" | 220 | "TestAlertGetReturnsCurrentAlertStatus" |
| 230 | "nflog" | 221 | "TestAlwaysInhibiting" |
| 231 | "nflog/nflogpb" | 222 | "TestBatching" |
| 232 | "notify" | 223 | "TestCannotAddUTF8AlertsInClassicMode" |
| 233 | "notify/discord" | 224 | "TestCannotAddUTF8SilencesInClassicMode" |
| 234 | "notify/email" | 225 | "TestClusterDeduplication" |
| 235 | "notify/msteams" | 226 | "TestClusterVSInstance" |
| 236 | "notify/msteamsv2" | 227 | "TestColdStart" |
| 237 | "notify/opsgenie" | 228 | "TestEmailRejected" |
| 238 | "notify/pagerduty" | 229 | "TestEmptyInhibitionRule" |
| 239 | "notify/pushover" | 230 | "TestFilterAlertRequest" |
| 240 | "notify/rocketchat" | 231 | "TestFinalAdvertiseAddr" |
| 241 | "notify/slack" | 232 | "TestInhibiting" |
| 242 | "notify/sns" | 233 | "TestInstallingNewTracerProvider" |
| 243 | "notify/telegram" | 234 | "TestMergeAlerts" |
| 244 | "notify/victorops" | 235 | "TestMergeAlertsWithEndsAt" |
| 245 | "notify/webex" | 236 | "TestReinstallingTracerProvider" |
| 246 | "notify/webhook" | 237 | "TestReinstallingTracerProviderWithTLS" |
| 247 | "notify/wechat" | 238 | "TestReload" |
| 248 | "pkg/labels" | 239 | "TestRepeat" |
| 249 | "provider/mem" | 240 | "TestResolved" |
| 250 | "store" | 241 | "TestResolvedFilter" |
| 251 | "template" | 242 | "TestRetry" |
| 252 | "timeinterval" | 243 | "TestSendAlertsToUTF8Route" |
| 253 | "types") | 244 | "TestSilenceDelete" |
| 245 | "TestSilencing" | ||
| 246 | "TestTracerProviderShutdown" | ||
| 247 | "TestUninstallingTracerProvider" | ||
| 248 | "TestWebWithPrefix" | ||
| 249 | "TestWebhookTimeout") | ||
| 250 | "|")) | ||
| 254 | #:phases | 251 | #:phases |
| 255 | #~(modify-phases %standard-phases | 252 | #~(modify-phases %standard-phases |
| 253 | (add-after 'unpack 'remove-broken-tests | ||
| 254 | (lambda* (#:key tests? unpack-path #:allow-other-keys) | ||
| 255 | (with-directory-excursion (string-append "src/" unpack-path) | ||
| 256 | ;; panic: unable to access amtool binary: error accessing | ||
| 257 | ;; amtool command, try 'make build' to generate the file. stat | ||
| 258 | ;; ../../../amtool: no such file or directory | ||
| 259 | (delete-file "test/cli/acceptance/cli_test.go")))) | ||
| 256 | (add-after 'unpack 'remove-examples | 260 | (add-after 'unpack 'remove-examples |
| 257 | (lambda* (#:key tests? import-path #:allow-other-keys) | 261 | (lambda* (#:key tests? unpack-path #:allow-other-keys) |
| 258 | (with-directory-excursion (string-append "src/" import-path) | 262 | (with-directory-excursion (string-append "src/" unpack-path) |
| 259 | (delete-file-recursively "examples"))))))) | 263 | (delete-file-recursively "examples"))))))) |
| 260 | (native-inputs | 264 | (native-inputs |
| 261 | (list go-github-com-emersion-go-smtp | 265 | (list go-github-com-emersion-go-smtp |
| 262 | go-github-com-kylelemons-godebug | 266 | go-github-com-kylelemons-godebug |
| 263 | go-github-com-stretchr-testify | 267 | go-github-com-stretchr-testify)) |
| 264 | go-go-uber-org-atomic)) | ||
| 265 | (propagated-inputs | 268 | (propagated-inputs |
| 266 | (list go-github-com-alecthomas-kingpin-v2 | 269 | (list go-github-com-kimmachinegun-automemlimit |
| 270 | go-github-com-alecthomas-kingpin-v2 | ||
| 267 | go-github-com-alecthomas-units | 271 | go-github-com-alecthomas-units |
| 268 | go-github-com-aws-aws-sdk-go | 272 | go-github-com-aws-aws-sdk-go-v2 |
| 273 | go-github-com-aws-aws-sdk-go-v2-config | ||
| 274 | go-github-com-aws-aws-sdk-go-v2-credentials | ||
| 275 | go-github-com-aws-aws-sdk-go-v2-service-sns | ||
| 276 | go-github-com-aws-aws-sdk-go-v2-service-sts | ||
| 277 | go-github-com-aws-smithy-go | ||
| 269 | go-github-com-cenkalti-backoff-v4 | 278 | go-github-com-cenkalti-backoff-v4 |
| 270 | go-github-com-cespare-xxhash-v2 | 279 | go-github-com-cespare-xxhash-v2 |
| 271 | go-github-com-coder-quartz | 280 | go-github-com-coder-quartz |
| @@ -277,31 +286,37 @@ registry.") | |||
| 277 | go-github-com-go-openapi-strfmt | 286 | go-github-com-go-openapi-strfmt |
| 278 | go-github-com-go-openapi-swag | 287 | go-github-com-go-openapi-swag |
| 279 | go-github-com-go-openapi-validate | 288 | go-github-com-go-openapi-validate |
| 280 | go-github-com-gofrs-uuid | ||
| 281 | go-github-com-gogo-protobuf | 289 | go-github-com-gogo-protobuf |
| 290 | go-github-com-google-uuid | ||
| 282 | go-github-com-hashicorp-go-sockaddr | 291 | go-github-com-hashicorp-go-sockaddr |
| 283 | go-github-com-hashicorp-golang-lru-v2 | 292 | go-github-com-hashicorp-golang-lru-v2 |
| 284 | go-github-com-hashicorp-memberlist | 293 | go-github-com-hashicorp-memberlist |
| 285 | go-github-com-jessevdk-go-flags | 294 | go-github-com-jessevdk-go-flags |
| 286 | go-github-com-kimmachinegun-automemlimit | ||
| 287 | go-github-com-matttproud-golang-protobuf-extensions | 295 | go-github-com-matttproud-golang-protobuf-extensions |
| 288 | go-github-com-oklog-run | 296 | go-github-com-oklog-run |
| 289 | go-github-com-oklog-ulid | 297 | go-github-com-oklog-ulid-v2 |
| 290 | go-github-com-prometheus-client-golang | 298 | go-github-com-prometheus-client-golang |
| 291 | go-github-com-prometheus-common | 299 | go-github-com-prometheus-common |
| 292 | go-github-com-prometheus-common-assets | ||
| 293 | go-github-com-prometheus-exporter-toolkit | 300 | go-github-com-prometheus-exporter-toolkit |
| 294 | go-github-com-prometheus-sigv4 | 301 | go-github-com-prometheus-sigv4 |
| 295 | go-github-com-rs-cors | 302 | go-github-com-rs-cors |
| 296 | go-github-com-shurcool-httpfs | 303 | go-github-com-shurcool-httpfs |
| 297 | go-github-com-shurcool-vfsgen | 304 | go-github-com-shurcool-vfsgen |
| 298 | ;; go-github-com-trivago-tgo | ||
| 299 | go-github-com-xlab-treeprint | 305 | go-github-com-xlab-treeprint |
| 306 | go-go-opentelemetry-io-contrib-instrumentation-net-http-httptrace-otelhttptrace | ||
| 307 | go-go-opentelemetry-io-contrib-instrumentation-net-http-otelhttp | ||
| 308 | go-go-opentelemetry-io-otel | ||
| 309 | go-go-opentelemetry-io-otel-exporters-otlp-otlptrace | ||
| 310 | go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracegrpc | ||
| 311 | go-go-opentelemetry-io-otel-exporters-otlp-otlptrace-otlptracehttp | ||
| 312 | go-go-opentelemetry-io-otel-sdk | ||
| 313 | go-go-opentelemetry-io-otel-trace | ||
| 300 | go-go-uber-org-automaxprocs | 314 | go-go-uber-org-automaxprocs |
| 301 | go-golang-org-x-mod | 315 | go-golang-org-x-mod |
| 302 | go-golang-org-x-net | 316 | go-golang-org-x-net |
| 303 | go-golang-org-x-text | 317 | go-golang-org-x-text |
| 304 | go-golang-org-x-tools | 318 | go-golang-org-x-tools |
| 319 | go-google-golang-org-grpc | ||
| 305 | go-gopkg-in-telebot-v3 | 320 | go-gopkg-in-telebot-v3 |
| 306 | go-gopkg-in-yaml-v2)) | 321 | go-gopkg-in-yaml-v2)) |
| 307 | (home-page "https://github.com/prometheus/alertmanager") | 322 | (home-page "https://github.com/prometheus/alertmanager") |
