← Back to issue list

remote-build: support build paths

View original Github issue

Metadata

Project
snapcraft
Number
#6287
Type
issue
State
open
Author
jnsgruk
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Enhancement to add --project-dir support for remote-build command, allowing users to specify build paths when multiple snapcraft.yaml files exist. Issue is triaged and assigned to a contributor after upstream dependency was resolved.

Suggested action: keep open

Reason: The issue is triaged with a clear scope and has been assigned to contributor @Tejas-Raj01 who confirmed readiness to implement it. The upstream dependency (craft-application#1106) was resolved on 2026-07-21 per maintainer @mr-cal's comment, and the contributor was instructed to start work immediately.

Impact: 50 Quick Win: 17.5 Staleness: 45 Complexity: 65 Confidence: 75 Support Request: 5

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description The `remote-build` command includes a `--project` option, which doesn't seem to actually work. I'm assured by the Launchpad team that they support this now, but I've been unable to make it work ### Steps to reproduce Provide step-by-step instructions to reproduce the bug. ``` snapcrafters-resolute-03c9 in webkitgtk-sdk 2404 ❯ tree . ├── LICENSE ├── README.md ├── webkitgtk-6-gnome-2404 │ └── snapcraft.yaml └── webkitgtk-6-gnome-2404-sdk ├── patches │ ├── fix-skia-s390x-big-endian.patch │ └── fix-webinspectorui-jsc-dependency.patch └── snapcraft.yaml snapcrafters-resolute-03c9 in webkitgtk-sdk 2404 2s ❯ snapcraft remote-build --launchpad-accept-public-upload --project webkitgtk-6-gnome-2404/snapcraft.yaml Project file 'snapcraft.yaml' not found in '/home/jon/snapcrafters/webkitgtk-sdk'. Detailed information: The project file could not be found. Recommended resolution: Ensure the project file exists. Full execution log: '/home/jon/.local/state/snapcraft/log/snapcraft-20260610-082513.963669.log' ``` ### Environment Ubuntu 26.04 LTS Snapcraft 8 and 9 are affected ### snapcraft.yaml ```yaml Not relevant here ``` ### Log output ```shell ❯ snapcraft remote-build --launchpad-accept-public-upload --project webkitgtk-6-gnome-2404/snapcraft.yaml Project file 'snapcraft.yaml' not found in '/home/jon/snapcrafters/webkitgtk-sdk'. Detailed information: The project file could not be found. Recommended resolution: Ensure the project file exists. Full execution log: '/home/jon/.local/state/snapcraft/log/snapcraft-20260610-082513.963669.log' ```

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 17.5
Staleness: 45
Complexity: 65
Confidence: 75
Support Request: 5
keep open Enhancement to add --project-dir support for remote-build command, allowing users to specify build paths when multiple snapcraft.yaml files exist. Issue is triaged and assigned to a contributor after upstream dependency was resolved.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 65
Confidence: 95
Support Request: 10
keep open Feature request to add --project-dir argument to remote-build for specifying build paths in multi-repo setups. Unblocked, assigned to a contributor, and ready for implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 20
Complexity: 70
Confidence: 90
Support Request: 10
keep open Enhancement to add --build-path flag for snapcraft remote-build to support subdirectory snapcraft.yaml files. Currently triaged, blocked on upstream craft-application work, with a contributor ready to implement once unblocked.
qwen3.6-35b-a3b-mtp-q6
Staleness: 10
Complexity: 45
Confidence: 85
Support Request: 20
keep open --project flag in snapcraft remote-build fails to locate snapcraft.yaml in subdirectories. Maintainer clarified flag purpose, acknowledged the missing feature for multi-file repos, and committed to investigating with the team.

Update history

Date Change
updated
updated
updated
updated

Related work

  • Blocked By: canonical/craft-application#1106 (confidence 90%)

    Explicitly referenced upstream dependency required before this issue could be addressed. Maintainer confirmed completion on 2026-07-21 and unblocked the contributor.

Related issues

Issue Project State Summary Similarity
#6372 feat(remote-build): add --project-dir argument to support build paths snapcraft open Adds --project-dir argument to snapcraft remote-build for monorepo support. Under active review with maintainer suggesting alternative approaches using build-path or upstream monorepo feature.
83%
#1106 remote-build: support `build_path` for snaps craft-application closed Accepted and closed. The build_path enhancement for snaps is scoped to the remote-build subcommand for now, with plans to expand to other lifecycle commands later.
80%
#1128 feat(remotebuild): add build-path to snap recipes craft-application merged Merged. Adds build-path to snap recipes and RemoteBuildService, resolving #1106 and unblocking snapcraft #6287. Exposed as --project-dir in the remote-build command. Approved by two reviewers and passed CI.
78%
#1968303 remote-build: support for snap relative sources snapcraft (launchpad) open Remote build fails when a part uses a snapcraft extension path ($SNAPCRAFT_EXTENSIONS_DIR/ros2) as its source, because the remote builder cannot determine the source type. Open since ~2021 with no labels, comments, or maintainer response.
73%
#3554 cli: add support for parallel remote builds snapcraft merged Merged to master. Enables parallel remote builds in snapcraft CLI by hashing project state instead of the directory path, allowing concurrent builds. Introduces a user-specifiable build ID for tracking and recovery.
72%