Skip to content

Fix non-constant format string in fmt.Errorf call#59

Merged
lmiccini merged 1 commit intoopenstack-k8s-operators:mainfrom
lmiccini:fix-errorf-format-string
Mar 23, 2026
Merged

Fix non-constant format string in fmt.Errorf call#59
lmiccini merged 1 commit intoopenstack-k8s-operators:mainfrom
lmiccini:fix-errorf-format-string

Conversation

@lmiccini
Copy link
Contributor

@lmiccini lmiccini commented Mar 23, 2026

Summary

  • Fix go vet error: non-constant format string in call to fmt.Errorf in pkg/collectcfg/fetch.go:255
  • Replace string concatenation with %s format placeholder
  • This fixes the RPM build failure during the %check phase (build log)

Test plan

  • go vet ./pkg/collectcfg/ passes without errors
  • RPM build completes successfully

🤖 Generated with Claude Code

go vet flags string concatenation used as the format argument
to fmt.Errorf as a potential format-string injection issue.
Use %s placeholder instead, which fixes the RPM build failure
during the %check phase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lmiccini lmiccini requested a review from matbu March 23, 2026 08:06
@karelyatin
Copy link

Copy link

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

@lmiccini lmiccini merged commit a95ae05 into openstack-k8s-operators:main Mar 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants