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

Allow escaping commas and colons in source bind path with the followi… #6008

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

cclerget
Copy link
Collaborator

@cclerget cclerget commented Jun 2, 2021

Description of the Pull Request (PR):

Allow escaping commas and colons in source bind path with the following syntax:

  • singularity shell -B /tmp/comma\\,separated_dir:/data image
  • singularity shell -B "/tmp/comma\,separated_dir":/data image
  • singularity shell -B /tmp/colon\\:sep_dir:/data image
  • singularity shell -B "/tmp/colon\:sep_dir":/data image

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@cclerget cclerget added the ci:e2e label Jun 2, 2021
@cclerget cclerget force-pushed the issue-5923-5959 branch 2 times, most recently from 59de124 to 789f681 Compare June 2, 2021 14:55
@DrDaveD
Copy link
Collaborator

DrDaveD commented Jun 3, 2021

@cclerget is this ready for review?

You weren't thinking of getting this in to 3.8.0, were you?

@cclerget cclerget added this to the 3.8.1 milestone Jun 4, 2021
@cclerget
Copy link
Collaborator Author

cclerget commented Jun 4, 2021

@DrDaveD Not 3.8.0, I created a 3.8.1 milestone and put this fix and issues in the 3.8.1 milestone. For this PR I forgot to add few e2e tests which I will add soon

…ng syntax:

- `singularity shell -B /tmp/comma\\,separated_dir:/data image`
- `singularity shell -B "/tmp/comma\,separated_dir":/data image`
- `singularity shell -B /tmp/colon\\:sep_dir:/data image`
- `singularity shell -B /tmp/"colon\:sep_dir":/data image`

- Fixes apptainer#5923
- Fixes apptainer#5959
Copy link
Collaborator

@DrDaveD DrDaveD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an important improvement.

@DrDaveD DrDaveD merged commit 28df6b6 into apptainer:master Jul 21, 2021
cclerget added a commit to cclerget/singularity that referenced this pull request Sep 4, 2021
DrDaveD added a commit that referenced this pull request Sep 4, 2021
Fix a regression introduced by #6008 adding bind mounts without destination two times
kmuriki pushed a commit that referenced this pull request Sep 8, 2021
kmuriki added a commit that referenced this pull request Sep 8, 2021
…ut destination two times"

This reverts commit 26a215e.
kmuriki pushed a commit to kmuriki/singularity that referenced this pull request Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants