docker / docker/buildx

--iidfile missing end of record (newline)

Open
#1,211 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

The output of --idfile is a text line but it is missing an end of record (end of line) token. That means many tools will have a hard time parsing it. In particular read in shell scripts will fail to read the input

docker buildx build --iidfile /tmp/iidfile .
read DIGEST < /tmp/iidfile

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 by reproducing the supplied docker buildx build --iidfile command and inspect the --iidfile handling in the buildx build entry point. Run the shell read example against the generated file; done means the output ends with a newline and the command reads the digest successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go, shell
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.