Skip to content

Commit

Permalink
php-fpm_exporter - fix ftbfs after upgrade to go 1.23 (#27332)
Browse files Browse the repository at this point in the history
When go moved to 1.23 the result of 'go mod tidy' is different than it
was with 1.22, and the result was an error in go bump like:

> running step "Bump go deps to a certain version"
> Running go mod tidy with go version '1.23.0' ...
> Error: Failed to running update.
> Error: package google.golang.org/protobuf with
>       version 'v1.33.0' is already at version v1.34.2

The 'go mod tidy' updates google.golang.org/protobuf to sufficient
version.
  • Loading branch information
smoser authored Aug 29, 2024
1 parent c81e391 commit 2cb83bf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions php-fpm_exporter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-fpm_exporter
version: 2.2.0
epoch: 6
epoch: 7
description: A prometheus exporter for PHP-FPM.
copyright:
- license: Apache-2.0
Expand All @@ -23,11 +23,6 @@ pipeline:
tag: v${{package.version}}
expected-commit: c75d2df4037741c1cb146216d7156273d13ff91f

- runs: |
rm go.mod
go mod init github.com/hipages/php-fpm_exporter # init in recent version
go mod tidy
- uses: go/bump
with:
deps: google.golang.org/[email protected]
Expand Down

0 comments on commit 2cb83bf

Please sign in to comment.