Skip to content

Update go dependencies#1972

Merged
umputun merged 1 commit intomasterfrom
update-repeater-v2
Dec 4, 2025
Merged

Update go dependencies#1972
umputun merged 1 commit intomasterfrom
update-repeater-v2

Conversation

@paskal
Copy link
Copy Markdown
Collaborator

@paskal paskal commented Dec 4, 2025

Summary

Update multiple Go dependencies to their latest versions.

Direct dependencies:

  • github.com/didip/tollbooth v7 → v8 (requires explicit SetIPLookup, added rateLimiter() helper)
  • github.com/go-pkgz/auth/v2 v2.0.1 → v2.1.0
  • github.com/go-pkgz/notify v1.2.0 → v1.3.0
  • github.com/go-pkgz/repeater v1 → v2 (API change: NewDefaultNewFixed)

Indirect dependencies:

  • cloud.google.com/go/compute/metadata v0.6.0 → v0.9.0
  • github.com/go-pkgz/email v0.5.0 → v0.6.0
  • github.com/go-pkgz/expirable-cache/v3 v3.0.0 → v3.1.0
  • github.com/klauspost/compress v1.18.0 → v1.18.2
  • github.com/redis/go-redis/v9 v9.7.3 → v9.17.2
  • github.com/slack-go/slack v0.15.0 → v0.17.3
  • github.com/xdg-go/scram v1.1.2 → v1.2.0
  • go.mongodb.org/mongo-driver v1.17.3 → v1.17.6
  • golang.org/x/oauth2 v0.29.0 → v0.33.0

CI changes:

  • Add free disk space step before docker builds to prevent running out of space

Code changes:

  • app/rest/api/rest.go: Added rateLimiter() helper function for tollbooth v8 migration. Uses RemoteAddr for IP lookup which works correctly because chi's middleware.RealIP (applied earlier in the middleware chain) already sets RemoteAddr to the real client IP from X-Forwarded-For/X-Real-IP headers.
  • app/notify/email.go, app/rest/proxy/image.go: Updated repeater API from NewDefault to NewFixed

@paskal paskal requested a review from umputun as a code owner December 4, 2025 00:47
@paskal paskal changed the title Update repeater to v2 Update go modules: repeater, notify, email Dec 4, 2025
@paskal paskal changed the title Update go modules: repeater, notify, email Update go modules: repeater, notify, email, tollbooth Dec 4, 2025
@paskal paskal changed the title Update go modules: repeater, notify, email, tollbooth Update go dependencies Dec 4, 2025
@paskal paskal force-pushed the update-repeater-v2 branch 2 times, most recently from c11f9f0 to 3624163 Compare December 4, 2025 01:03
Direct dependencies:
- github.com/didip/tollbooth v7 -> v8 (requires explicit SetIPLookup)
- github.com/go-pkgz/auth/v2 v2.0.1 -> v2.1.0
- github.com/go-pkgz/notify v1.2.0 -> v1.3.0
- github.com/go-pkgz/repeater v1 -> v2 (API change: NewDefault -> NewFixed)

Indirect dependencies:
- cloud.google.com/go/compute/metadata v0.6.0 -> v0.9.0
- github.com/go-pkgz/email v0.5.0 -> v0.6.0
- github.com/go-pkgz/expirable-cache/v3 v3.0.0 -> v3.1.0
- github.com/klauspost/compress v1.18.0 -> v1.18.2
- github.com/redis/go-redis/v9 v9.7.3 -> v9.17.2
- github.com/slack-go/slack v0.15.0 -> v0.17.3
- github.com/xdg-go/scram v1.1.2 -> v1.2.0
- go.mongodb.org/mongo-driver v1.17.3 -> v1.17.6
- golang.org/x/oauth2 v0.29.0 -> v0.33.0

Also add free disk space step to CI build workflow.
@paskal paskal force-pushed the update-repeater-v2 branch from 3624163 to 6f3e38a Compare December 4, 2025 01:09
@umputun umputun merged commit 564e8ff into master Dec 4, 2025
3 of 4 checks passed
@umputun umputun deleted the update-repeater-v2 branch December 4, 2025 01:47
@paskal paskal added the backend label Mar 25, 2026
@paskal paskal added this to the v1.15.0 milestone Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants