-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
spython incorrectly fills in ARGs #187
Comments
This looks to be a bug! Unless you beat me to it, I'll try to debug this weekend. Thanks! |
hey @richelbilderbeek ! This turned out to be a quick fix - there was a regex that was a little too heavy handed. Here is a PR to test: #188 and I've added your case as a new test. I'm going back so sleep but should be back after that! 😆 |
ping @richelbilderbeek did you ever get to test this? |
@vsoch IIRC yes, it worked! Sorry I forgot to mention that and thank you for that; I appreciate your cool work quite a bit and I usually do that; something must have made me slip my mind there! |
ah ok! The PR is old enough that it cannot easily be merged so I'll need to make it over again, reopening issue until we have another one to test. |
@vsoch you are awesome! |
First: thanks for
spython
, it is a great tool to use tested Dockerfiles as another source of working Singularity files!Here, however, I think I found a lil' bug. I did my best to make it easy to understand and reproduce and hope I did a good job! Thanks for being awesome and cheers, Richel
Expected Behavior
When I use
spython
to convert a Docker file, I expect the ARGs to be substituted correctly.For example, when the Docker file starts with (full Docker file below) ...
... I expect that calling spython to create a Singularity file ...
to start with:
Actual Behavior
However, the top line becomes:
It seems that the first argument (
CUDA_VERSION
) is pasted twice, instead of having onCUDA_VERSION
paste and oneOS_VERSION
paste.Steps to Reproduce
Unzip this:
spython_issue.zip
It will create a file,
Singularity
that is the same as the fileSingularity_incorrect
.Spython should create a file that is the same as the file
Singularity_expected
.Context
singularity --version
: singularity version 423bcf8-dirtyspython --version
: 0.1.18python --version
: Python 2.7.18,python3 --version
: Python 3.8.10Failure Logs
N/A
Possible Fix
No idea, need to see where the ARGs are inserted :-)
The text was updated successfully, but these errors were encountered: