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

feat: Create parent directories if --split-exp is used. #2231

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

rudo-thomas
Copy link
Contributor

Problem: When --split-exp is used and produces filenames with slashes in them, the target directories must already exist otherwise yq fails.

Fix/feature: Create the necessary directories with os.MkdirAll(). The permissions 0750 were chosen to satisfy the vulnerability checker.

Problem: When --split-exp is used and produces filenames with slashes in
them, the target directories must already exist otherwise yq fails.

Fix/feature: Create the necessary directories with os.MkdirAll().
The permissions 0750 were chosen to satisfy the vulnerability checker.
@rudo-thomas
Copy link
Contributor Author

FWIW, the jsonnet binary has an extra flag for enabling the creation of the directories in a similar case.

I didn't think it was necessary here...

@mikefarah mikefarah merged commit f73c862 into mikefarah:master Dec 14, 2024
3 checks passed
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.

2 participants