canonical / pebble

Pebble is a lightweight Linux service manager with layered configuration and an HTTP API.
https://canonical-pebble.readthedocs-hosted.com/
GNU General Public License v3.0
146 stars 54 forks source link

fix(cli): PEBBLE_COPY_ONCE on missing dir. #392

Closed hpidcock closed 6 months ago

hpidcock commented 6 months ago

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 commented 6 months ago

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