Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty file when using compose config in case of smaller source files #10129

Merged
merged 1 commit into from Dec 30, 2022

Commits on Dec 29, 2022

  1. Fix empty file when using compose config in case of smaller source files

    "docker compose config --output out.yml" resulted an empty file
    when the generated output was smaller than 4097 bytes.
    bufio.Writer doesn't seem necessary since only one write operation will happen.
    This way there is no need for a new bufio.Writer that could be flushed.
    
    Thanks for @thaJeztah for the idea of using os.WriteFile
    
    Issue docker#10121
    
    Signed-off-by: Ákos Takács <takacs.akos@it-sziget.hu>
    rimelek committed Dec 29, 2022
    Copy the full SHA
    dea484d View commit details
    Browse the repository at this point in the history