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(cli): PEBBLE_COPY_ONCE on missing dir. #392

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

hpidcock
Copy link
Member

@hpidcock hpidcock commented Mar 21, 2024

If the PEBBLE_COPY_ONCE source directory does not exist, it will fail to copy inside the borrowed std go copyFS function. This adds an os.Stat to check if it first exists, ignoring it otherwise (the expected behavior).

@hpidcock hpidcock requested a review from benhoyt March 21, 2024 09:21
@hpidcock hpidcock changed the title Fix error reporting + PEBBLE_COPY_ONCE on missing dir. fix(cli): error reporting + PEBBLE_COPY_ONCE on missing dir. Mar 21, 2024
@hpidcock hpidcock changed the title fix(cli): error reporting + PEBBLE_COPY_ONCE on missing dir. fix(cli): run cmd error reporting + PEBBLE_COPY_ONCE on missing dir. Mar 21, 2024
@hpidcock hpidcock added the High Priority Look at me first label Mar 21, 2024
@hpidcock
Copy link
Member Author

@benhoyt we will need a v1.9.1 release after this lands.

@hpidcock hpidcock changed the title fix(cli): run cmd error reporting + PEBBLE_COPY_ONCE on missing dir. fix(cli): PEBBLE_COPY_ONCE on missing dir. Mar 21, 2024
@benhoyt benhoyt merged commit 41a43a5 into canonical:master Mar 21, 2024
15 checks passed
benhoyt added a commit to benhoyt/pebble that referenced this pull request Mar 21, 2024
If the `PEBBLE_COPY_ONCE` source directory does not exist, it will fail
to copy inside the borrowed std go copyFS function. This adds an
`os.Stat` to check if it first exists, ignoring it otherwise (the
expected behavior).

---------

Co-authored-by: Ben Hoyt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority Look at me first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants