← Back to issue list

Don't follow symlinks for remote-builds

View original Github issue

Metadata

Project
craft-application
Number
#721
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Enhancement
Created
2025-04-08 20:58:17+00:00
Updated
2025-06-07 00:14:13+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Craft-application should set `symlinks=True` when setting up the [remote-build work dir](https://github.com/canonical/craft-application/blob/ea697712fc92177a3669270e168f638272cc22f6/craft_application/remote/worktree.py#L54). Additionally, there should be a try/except when copying files. Currently, it bubbles up as an internal error. ### Why it needs to get done Craft-application shouldn't follow symlinks when copying the project directory to a temporary working directory. The working directory should be as identical as possible to the project directory. Additionally, following symlinks may fail. Source: https://github.com/canonical/snapcraft/issues/5384

Evaluation history

No evaluation history available.