← Back to issue list

Setting source: .. causes pull to fail

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1600428
Type
issue
State
closed
Author
~ev
Labels
Created
Updated
Closed

Current evaluation

Abandoned. Setting source: .. in snapcraft.yaml caused an infinite loop and file name too long error during pull. The bug was not fixed or addressed.

Suggested action:

No scores available.

Issue body

I was contemplating putting the snapcraft.yaml in a subdirectory of the upstream source (e.g. apache-cassandra-3.7/snapcraft). This as it turns out does not work: $ mkdir -p snapcraft-test/child $ touch snapcraft-test/file $ cd snapcraft-test/child $ cat > snapcraft.yaml <<EOF name: test version: 1 summary: none description: none parts: parent: plugin: copy source: .. files: file: file EOF $ cd snapcraft-test/child $ snapcraft ... [Errno 36] File name too long: '/home/ev/snapcraft-test/child/parts/parent/src/child/parts/parent/src/child/parts/parent/src/child/parts/parent/src/child/parts/parent/src/child/parts/parent/src/child/parts/parent... snapcraft should either detect and error out, or skip copying the current working directory into itself.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned. Setting source: .. in snapcraft.yaml caused an infinite loop and file name too long error during pull. The bug was not fixed or addressed.
qwen/qwen3.6-35b-a3b Setting source: .. in a subdirectory caused infinite recursion and file name too long errors during the pull phase. The report was closed without resolution.
qwen/qwen3.6-35b-a3b Closed without resolution. The report details an infinite recursion bug when using relative source paths in snapcraft.yaml. Zero comments and significant age indicate the issue was abandoned.
qwen/qwen3.6-35b-a3b Closed without a fix. Using source: .. in snapcraft.yaml triggers infinite recursion and a file name too long error. No resolution or workaround was documented.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1822727 Snapcraft complains the missing `source` property when the source URL is determined in override-pull scriptlet snapcraft (launchpad) open Snapcraft rejects snapcraft.yaml when a part omits `source` because the URL is resolved at runtime in an override-pull scriptlet; reporter suggests deferring the check or adding snapcraftctl set-source. No labels, no comments, no maintainer activity for ~7.4 years.
70%
#1644350 Runnig snapcraft with sources on parent folders (over one level) causes infinite loops snapcraft (launchpad) closed Snapcraft entered an infinite loop when sources were placed in parent folders more than one level deep. The report was closed without resolution or a fix, with no comments or associated pull requests.
70%