-
Notifications
You must be signed in to change notification settings - Fork 7
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
Adaptations to new copier version and fix to avoid bash scripts being sourced #114
Conversation
…instead of sourcing them
launch jenkins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
we could add this barrier https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced to the script to prevent the users - in order to make it safer |
@@ -19,7 +19,7 @@ jobs: | |||
- name: Create new project | |||
run: | | |||
# Note: Make sure python_version is consistent with python-version hardcoded above | |||
conda run --name blueprint copier --force --vcs-ref=HEAD python_version=3.9 copy . ./docs/example_project | |||
conda run --name blueprint copier copy --force --vcs-ref=HEAD . ./docs/example_project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the python version removed here?
If we really want to / need to remove it, adopt the comment above
closed in favor of #121 |
This PR includes
tools/setup_miniconda.sh
script in sourcing it instead of executing it. This breaks the argument parsing of the script. It relies onOPTIND
which is not reset when calling the script again, and the script then ignores the arguments. I included a hint in the documentation at two locations.It fixes #117 and ideally also fixes the jenkins plan which is currently failing.
Since the copier commands are not backward compatible, this version of the blueprint now works with the new version. Supporting both adds work...