Fix build error with --build-template conda/micromamba:v2 for singularity #972
Open
munishchouhan wants to merge 4 commits intomasterfrom
Open
Conversation
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
pditommaso
reviewed
Jan 29, 2026
Collaborator
pditommaso
left a comment
There was a problem hiding this comment.
is there any tar options that could provide an alternative solution? bit concerned about shallowing stderr in case of error (and returning
Member
Author
I tired multiple flags but no luck This error could be because of proot |
Member
Author
|
because even i make a workaround where we just ignore this exception, may lead to brocker env |
Member
Author
|
and not using tar also decreases the build time |
Signed-off-by: munishchouhan <hrma017@gmail.com>
Signed-off-by: munishchouhan <hrma017@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
Singularity builds fail with tar errors when extracting conda packages:
tar: conda/pkgs/...: Cannot change mode to rwxrwxr-x: No such file or directory
Root Cause:
Conda's pkgs/ cache contains dangling symlinks. When tar extracts and tries to chmod these symlinks, Linux applies chmod to the (non-existent) target, causing "No such
file or directory" errors. The symlinks are created successfully - only the chmod fails.
Solution:
Suppress harmless tar errors with 2>/dev/null || true. The extraction succeeds and conda environments function correctly.
Changes: