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

Docker progress output hides degugging output from pre-build hooks #1366

Open
ydirson opened this issue Nov 9, 2023 · 1 comment
Open

Docker progress output hides degugging output from pre-build hooks #1366

ydirson opened this issue Nov 9, 2023 · 1 comment

Comments

@ydirson
Copy link
Contributor

ydirson commented Nov 9, 2023

cross version used: 44011c8

With docker 23.x from docker.com, the heavy progress output from Docker contains many terminal escape sequences, and they interfere with output we can print from a pre-build hook, as much as hiding a 200+ line find output like generated from:

[target.x86_64-unknown-freebsd]
pre-build = ["""
bash -c ". /freebsd-install.sh && install_freebsd_package xen-tools" &&
find /usr/local/x86_64-unknown-freebsd12/  -name "*xen*"
"""]

Workaround: redirect to a file so docker stops producing terminal control sequences, but at the same time modify the pre-build hook so that docker does not just fetch an overlay from cached previous runs.

@Emilgardis
Copy link
Member

one way around this is setting --progress=plain

CROSS_BUILD_OPTS=--progress=plain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants