← Back to issue list

parent-relative symlinks error with sshfs

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1744921
Type
issue
State
closed
Author
~kalikiana
Labels
container sshfs
Created
Updated
Closed

Current evaluation

Linked PR canonical/snapcraft#1900 proposed custom symlink copying, but it was closed unmerged after review questioned the rewrite; no merged fix is recorded.

Resolution: closed stale

Reason: The reporter linked PR #1900 as the attempted fix. It was closed unmerged after its custom shutil.copytree rewrite drew reviewer concern, with no CI run or follow-up implementation.

Evaluated by: mr-cal-bot

No scores available.

Issue body

If there's a relative symlink in the snap's source or the contents of a part, it'll error in the pull or build step respectively. Steps to reproduce: $ git clone https://github.com/LaughingLove/branch-diff-snap.git $ cd branch-diff-snap $ SNAPCRAFT_CONTAINER_BUILDS=helga snapcraft Using LXD remote 'helga' from SNAPCRAFT_CONTAINER_BUILDS Waiting for a network connection... Network connection established useradd: user 'cris' already exists Mounting /home/cris/bau/branch-diff-snap into container Reading package lists... Done Building dependency tree Reading state information... Done sshfs is already the newest version (2.5-1ubuntu1). The following packages were automatically installed and are no longer required: libc-dev-bin libc6-dev libfreetype6 linux-libc-dev manpages-dev zlib1g-dev Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded. Skipping pull branch-diff (already ran) Preparing to build branch-diff Building branch-diff [...] File "/snap/snapcraft/x1/lib/python3.6/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 353, in build symlinks=True, ignore=ignore) File "/snap/snapcraft/x1/usr/lib/python3.6/shutil.py", line 353, in copytree raise Error(errors) shutil.Error: [('/home/cris/build_branch-diff/parts/branch-diff/src/node_modules/.bin/mkdirp', '/home/cris/build_branch-diff/parts/branch-diff/build/node_modules/.bin/mkdirp', '[Errno 2] No such file or directory')] Stopping helga:snapcraft-branch-diff

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Linked PR canonical/snapcraft#1900 proposed custom symlink copying, but it was closed unmerged after review questioned the rewrite; no merged fix is recorded.
stealth/space-bunny-alpha — closed stale Closed without a fix after prolonged inactivity. Linked PR #1900 proposed safer symlink copying but was closed unmerged, leaving parent-relative symlink failures in sshfs builds unresolved.
stealth/space-bunny-alpha — closed stale PR #1900 proposed handling symlink permissions for the SSHFS copytree failure, but it was closed unmerged; no replacement fix or release was recorded.
stealth/space-bunny-alpha — closed stale Closed without resolution after prolonged inactivity; no fixing PR or commit was identified for the sshfs relative-symlink build failure.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Relative symlinks triggered a shutil.Error during snapcraft builds using sshfs. No fix was implemented, and the report was abandoned due to inactivity.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution. Reported a shutil.Error when snapcraft copied parent-relative symlinks during sshfs-based builds. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Reported a shutil.Error when copying parent-relative symlinks during snapcraft builds over sshfs. No fix or follow-up was provided.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. Relative symlinks in snapcraft source triggered a shutil.Error during sshfs-backed builds. Issue abandoned due to inactivity.

Update history

Date Change
created

Related work

  • Related To: canonical/snapcraft#1900 (confidence 99%)

    Proposed custom copytree handling for LP #1744921, but was closed without merging.

Related issues

Issue Project State Summary Similarity
#1650686 Some symlinks not properly fixed up snapcraft (launchpad) closed Closed as stale in September 2017 after the reporter could not reproduce the problem; no Snapcraft fix was identified.
72%