docker / docker/docker-credential-helpers

Error messages are printed to STDOUT instead of STDERR

Open
#101 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.3k
Forks
195
Avg merge
1d 20h
Merged PRs (30d)
5

Description

The credentials helper command line tools print their error messages to STDOUT instead of STDERR.

Suggested fix: replace line 62 of credentials.go

fmt.Fprintf(os.Stdout, "%v\n", err)

with

fmt.Fprintf(os.Stderr, "%v\n", err)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at line 62 of credentials/credentials.go, where the credentials helper command-line tools write errors. Confirm the error output is sent to STDERR rather than STDOUT, and verify the command-line behavior afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.