Skip to content

fix(deps): update module github.com/go-openapi/strfmt to v0.25.0#412

Open
renovate-sh-app[bot] wants to merge 1 commit intomainfrom
renovate/go-openapi
Open

fix(deps): update module github.com/go-openapi/strfmt to v0.25.0#412
renovate-sh-app[bot] wants to merge 1 commit intomainfrom
renovate/go-openapi

Conversation

@renovate-sh-app
Copy link
Contributor

@renovate-sh-app renovate-sh-app bot commented Oct 29, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/go-openapi/strfmt v0.23.0v0.25.0 age confidence

Release Notes

go-openapi/strfmt (github.com/go-openapi/strfmt)

v0.25.0

Compare Source

v0.24.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

Need help?

You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.

@renovate-sh-app
Copy link
Contributor Author

renovate-sh-app bot commented Oct 29, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 8 additional dependencies were updated

Details:

Package Change
golang.org/x/net v0.44.0 -> v0.46.0
github.com/go-openapi/errors v0.22.2 -> v0.22.4
go.mongodb.org/mongo-driver v1.14.0 -> v1.17.6
golang.org/x/crypto v0.42.0 -> v0.43.0
golang.org/x/mod v0.27.0 -> v0.28.0
golang.org/x/sys v0.36.0 -> v0.37.0
golang.org/x/text v0.29.0 -> v0.30.0
golang.org/x/tools v0.36.0 -> v0.37.0
File name: testing/alerting-gen/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 13 additional dependencies were updated

Details:

Package Change
github.com/stretchr/testify v1.10.0 -> v1.11.1
github.com/go-openapi/analysis v0.23.0 -> v0.24.1
github.com/go-openapi/errors v0.22.2 -> v0.22.4
github.com/go-openapi/jsonpointer v0.21.0 -> v0.22.1
github.com/go-openapi/jsonreference v0.21.0 -> v0.21.3
github.com/go-openapi/loads v0.22.0 -> v0.23.2
github.com/go-openapi/spec v0.21.0 -> v0.22.1
go.mongodb.org/mongo-driver v1.14.0 -> v1.17.6
go.opentelemetry.io/auto/sdk v1.1.0 -> v1.2.1
go.opentelemetry.io/otel v1.37.0 -> v1.38.0
go.opentelemetry.io/otel/metric v1.37.0 -> v1.38.0
go.opentelemetry.io/otel/trace v1.37.0 -> v1.38.0
golang.org/x/sync v0.17.0 -> v0.18.0

@github-project-automation github-project-automation bot moved this to In review in Alerting Oct 29, 2025
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch from ca1a806 to dd8b4a1 Compare October 30, 2025 18:16
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 3 times, most recently from 4f2f343 to 2763e9e Compare November 10, 2025 21:16
@renovate-sh-app renovate-sh-app bot changed the title fix(deps): update module github.com/go-openapi/strfmt to v0.24.0 fix(deps): update module github.com/go-openapi/strfmt to v0.25.0 Nov 12, 2025
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 4 times, most recently from c8081ae to c32ca82 Compare December 2, 2025 15:22
@renovate-sh-app renovate-sh-app bot changed the title fix(deps): update module github.com/go-openapi/strfmt to v0.25.0 fix(deps): update go-openapi packages Dec 2, 2025
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 2 times, most recently from 10eaa9f to e123bce Compare December 11, 2025 12:12
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 5 times, most recently from 6e8a5f4 to 737e7c5 Compare December 17, 2025 15:09
@renovate-sh-app
Copy link
Contributor Author

renovate-sh-app bot commented Dec 23, 2025

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 8 additional dependencies were updated

Details:

Package Change
golang.org/x/net v0.44.0 -> v0.46.0
github.com/go-openapi/errors v0.22.2 -> v0.22.4
go.mongodb.org/mongo-driver v1.14.0 -> v1.17.6
golang.org/x/crypto v0.42.0 -> v0.43.0
golang.org/x/mod v0.27.0 -> v0.28.0
golang.org/x/sys v0.36.0 -> v0.37.0
golang.org/x/text v0.29.0 -> v0.30.0
golang.org/x/tools v0.36.0 -> v0.37.0
File name: testing/alerting-gen/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
github.com/go-openapi/errors v0.22.2 -> v0.22.4
go.mongodb.org/mongo-driver v1.14.0 -> v1.17.6

@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 3 times, most recently from 64f1999 to 4b35ed5 Compare January 2, 2026 12:09
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 5 times, most recently from 65f9ffb to d1c83b8 Compare January 22, 2026 15:07
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 2 times, most recently from 2538638 to 0102ff1 Compare January 29, 2026 18:24
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 3 times, most recently from 991b49e to a7bf938 Compare February 6, 2026 16:07
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 2 times, most recently from e315675 to 0f51816 Compare February 12, 2026 22:05
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 5 times, most recently from 1590d4e to a979ce3 Compare February 24, 2026 00:07
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
github.com/go-kit/log v0.2.1
github.com/go-openapi/strfmt v0.23.0
github.com/go-openapi/strfmt v0.25.0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DateTime omitempty may stop working

Medium Severity

Bumping github.com/go-openapi/strfmt to v0.25.0 can change strfmt.DateTime zero/IsZero semantics, which encoding/json may use for omitempty. This risks IntegrationStatus.LastNotifyAttempt being serialized when unset (e.g., as Unix epoch) instead of being omitted, altering the /receivers API output.

Fix in Cursor Fix in Web

@cursor
Copy link

cursor bot commented Feb 24, 2026

Bugbot Autofix prepared fixes for 1 of the 1 bugs found in the latest run.

  • ✅ Fixed: DateTime omitempty may stop working
    • Changed LastNotifyAttempt from strfmt.DateTime to *strfmt.DateTime so that nil values are properly omitted by omitempty when no notification attempt has been made.

Create PR

Or push these changes by commenting:

@cursor push ba641dbd2d
Preview (ba641dbd2d)
diff --git a/models/receivers.go b/models/receivers.go
--- a/models/receivers.go
+++ b/models/receivers.go
@@ -20,7 +20,7 @@
 type IntegrationStatus struct {
 	// A timestamp indicating the last attempt to deliver a notification regardless of the outcome.
 	// Format: date-time
-	LastNotifyAttempt strfmt.DateTime `json:"lastNotifyAttempt,omitempty"`
+	LastNotifyAttempt *strfmt.DateTime `json:"lastNotifyAttempt,omitempty"`
 
 	// Duration of the last attempt to deliver a notification in humanized format (`1s` or `15ms`, etc).
 	LastNotifyAttemptDuration string `json:"lastNotifyAttemptDuration,omitempty"`

diff --git a/notify/grafana_alertmanager.go b/notify/grafana_alertmanager.go
--- a/notify/grafana_alertmanager.go
+++ b/notify/grafana_alertmanager.go
@@ -426,10 +426,15 @@
 		integrations := make([]models.IntegrationStatus, 0, len(rcv.Integrations()))
 		for _, integration := range rcv.Integrations() {
 			ts, d, err := integration.GetReport()
+			var lastNotifyAttempt *strfmt.DateTime
+			if !ts.IsZero() {
+				dt := strfmt.DateTime(ts)
+				lastNotifyAttempt = &dt
+			}
 			integrations = append(integrations, models.IntegrationStatus{
 				Name:                      integration.Name(),
 				SendResolved:              integration.SendResolved(),
-				LastNotifyAttempt:         strfmt.DateTime(ts),
+				LastNotifyAttempt:         lastNotifyAttempt,
 				LastNotifyAttemptDuration: d.String(),
 				LastNotifyAttemptError: func() string {
 					if err != nil {

diff --git a/notify/test_receivers.go b/notify/test_receivers.go
--- a/notify/test_receivers.go
+++ b/notify/test_receivers.go
@@ -48,8 +48,9 @@
 	}
 	now := time.Now()
 	err = TestNotifier(ctx, nf[0], newTestAlert(&testAlert, now, now), now)
+	dt := strfmt.DateTime(now)
 	result := models.IntegrationStatus{
-		LastNotifyAttempt:         strfmt.DateTime(now),
+		LastNotifyAttempt:         &dt,
 		LastNotifyAttemptDuration: model.Duration(time.Since(now)).String(),
 		Name:                      nf[0].Name(),
 		SendResolved:              nf[0].SendResolved(),

@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch 8 times, most recently from 9b5fcb7 to 9e2d3c6 Compare March 3, 2026 12:04
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.

golang.org/x/sys v0.37.0 // indirect
golang.org/x/text v0.30.0 // indirect
golang.org/x/tools v0.37.0 // indirect
golang.org/x/tools/godoc v0.1.0-deprecated // indirect
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecated module added as indirect dependency

Low Severity

The update introduces golang.org/x/tools/godoc v0.1.0-deprecated as a new indirect dependency. This module's -deprecated version suffix signals it has been officially marked deprecated and superseded by golang.org/x/pkgsite/cmd/pkgsite. A documentation tool like godoc has no expected role in an alerting library's dependency graph, and its presence is unexplained — it does not appear in the testing/alerting-gen submodule despite that module also using strfmt v0.25.0, suggesting an unintended transitive pull from one of the other updated packages (e.g., go.mongodb.org/mongo-driver v1.17.6). This could trigger dependency-scanning or supply-chain security policy violations in CI.

Fix in Cursor Fix in Web

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot Autofix determined this is a false positive.

golang.org/x/tools/godoc is reintroduced by go mod tidy because transitive tests in github.com/shurcooL/httpfs (pulled via github.com/prometheus/alertmanager/asset) still import golang.org/x/tools/godoc/vfs/*, so it cannot be cleanly removed without larger dependency pinning hacks.

| datasource | package                      | from    | to      |
| ---------- | ---------------------------- | ------- | ------- |
| go         | github.com/go-openapi/strfmt | v0.23.0 | v0.25.0 |


Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
@renovate-sh-app renovate-sh-app bot force-pushed the renovate/go-openapi branch from 9e2d3c6 to 3883840 Compare March 3, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

0 participants