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

updating --env flags to be a map[string]string, from sylabs 684 (1.0) #424

Merged
merged 1 commit into from
May 5, 2022

Conversation

edytuk
Copy link
Contributor

@edytuk edytuk commented May 4, 2022

This cherry-picks #413 to the release-1.0 branch

the current flag using a splice type will truncate on commas. In order to better
support commas in --env variables we should have support for types of map[string]string.
This change will add this new option and fix the current --env bug described in slack
that splits name=val1,val2 into just name=val1 and outputs a warning. I saw some custom
parsing code in a different file that maybe was intended to handle this, but it never
gets called because the envar is skipped. If it is not skipped the comma would already
be truncated by the flag parser.

Apologies for mistakes - have not looked at Singularity source code in years it seems!

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
@DrDaveD DrDaveD added this to the 1.0.2 milestone May 5, 2022
@DrDaveD DrDaveD merged commit 472ba2d into apptainer:release-1.0 May 5, 2022
@edytuk edytuk deleted the pick413 branch May 5, 2022 13:38
@vsoch
Copy link
Contributor

vsoch commented May 6, 2022

lol! Double contribution, win! 🥳

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

Successfully merging this pull request may close these issues.

None yet

3 participants