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

setuptools have a file named 'launcher manifest.xml' which have space in the filename. This fail the image build cause of tar not support such things. #571

Closed
hackrole opened this issue May 11, 2024 · 1 comment

Comments

@hackrole
Copy link

I am not sure about how to fix this. It seems like a bug cause setuptools is a common used package.

The error is like below:

ERROR: /home/user/projects/mono_project/web_app/BUILD.bazel:123:13: Tar web_app/image_webapp.app_layer.tar failed: (Exit 1): tar failed: error executing Tar command (from target //web_app:image_webapp.app_layer) external/aspect_bazel_lib~2.7.1~toolchains~bsd_tar_linux_amd64/tar --create --file bazel-out/k8-fastbuild/bin/web_app/image_webapp.app_layer.tar ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
tar: Error reading archive bazel-out/k8-fastbuild/bin/mono_project/web_app/image_webapp.app_tar_manifest.spec: Can't open bazel-out/k8-fastbuild/bin/external/rules_poetry~override~poetry~webapp_poetry/3.9/x86_64-unknown-linux-gnu/setuptools/setuptools/command/launcher
tar: Error exit delayed from previous errors.
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.592s, Critical Path: 0.48s
INFO: 2 processes: 2 internal.
ERROR: Build did NOT complete successfully

what's the failed command is in short of

tar --create --file app.layer.tar @app.app_tar_manifest.spec

what's cause error in the manifest.specc is a file in setuptools package with space in the filename

web_app/webapp.runfiles/rules_poetry~override~poetry~webapp_poetry/3.9/x86_64-unknown-linux-gnu/setuptools/setuptools/command/launcher manifest.xml uid=0 gid=0 time=1672560000 mode=0755 type=file content=bazel-out/k8-fastbuild/bin/external/rules_poetry~override~poetry~webapp_poetry/3.9/x86_64-unknown-linux-gnu/setuptools/setuptools/command/launcher manifest.xml

image

@thesayyn
Copy link
Collaborator

This is fixed by bazel-contrib/bazel-lib#835.

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

No branches or pull requests

2 participants