Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Fix fmt.Errorf format argument in ParseFullReference#12516

Merged
babakks merged 2 commits intocli:trunkcli/cli:trunkfrom
mikelolasagasti:pr-shared-error-atoimikelolasagasti/cli:pr-shared-error-atoiCopy head branch name to clipboard
Jan 21, 2026
Merged

Fix fmt.Errorf format argument in ParseFullReference#12516
babakks merged 2 commits intocli:trunkcli/cli:trunkfrom
mikelolasagasti:pr-shared-error-atoimikelolasagasti/cli:pr-shared-error-atoiCopy head branch name to clipboard

Conversation

@mikelolasagasti
Copy link
Contributor

The error path passed an int to fmt.Errorf with %q, which expects a string. Use the original reference string to avoid a format mismatch.

Found testing package in Fedora:

./finder.go:352:49: fmt.Errorf format %q has arg number of wrong type int

The error path passed an int to fmt.Errorf with %q, which expects a
string. Use the original reference string to avoid a format mismatch.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
@mikelolasagasti mikelolasagasti requested a review from a team as a code owner January 21, 2026 22:17
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Jan 21, 2026
@cliAutomation
Copy link
Collaborator

Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message.

Copy link
Member

@babakks babakks left a comment

Choose a reason for hiding this comment

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

Good catch, @mikelolasagasti! 🙏

LGTM! Thanks for the fix. 🍻

Signed-off-by: Babak K. Shandiz <babakks@github.com>
@babakks
Copy link
Member

babakks commented Jan 21, 2026

I just added the underlying err in the message, and a test case to cover this path.

@babakks babakks enabled auto-merge January 21, 2026 23:32
@babakks babakks merged commit 3220ab5 into cli:trunk Jan 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.