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

fix: don't check tempdir writeability #118

Merged
merged 2 commits into from
Oct 2, 2024
Merged

fix: don't check tempdir writeability #118

merged 2 commits into from
Oct 2, 2024

Conversation

kelly-sovacool
Copy link
Member

@kelly-sovacool kelly-sovacool commented Oct 1, 2024

if config['tempdir'] contains a bash variable, it won't be interpolated properly in python and charlie will falsely say that it is not writeable.

interpolating bash variables may raise a security issue, so I think it's better not to check and just let an error happen later (during a rule that uses the tempdir) if the user sets tempdir to an unwriteable location.

Issues

fixes #117

PR Checklist

(Strikethrough any points that are not applicable.)

  • This comment contains a description of changes with justifications, with any relevant issues linked.
  • [ ] Update docs if there are any API changes.
  • Update CHANGELOG.md with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/

if it contains a bash variable, it won't be interpolated properly in python and will
falsely say that it is not writeable
@kelly-sovacool kelly-sovacool merged commit fd38b9e into main Oct 2, 2024
1 check passed
@kelly-sovacool kelly-sovacool deleted the iss-117 branch October 2, 2024 17:56
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.

TEMPDIR /lscratch/$SLURM_JOB_ID cannot be written to
1 participant