canonical / canonical/craft-application
Commands cannot always load projects with advanced grammar
- Dominant language
- Python
- Stars
- 14
- Forks
- 29
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 12
Description
### What needs to get done
A command cannot parse a project with advanced grammar if no build-for or platform is provided.
Source: https://github.com/canonical/snapcraft/pull/4630#issuecomment-1988210684
As discussed as a team, this may be solved by loading only some items of the project.
### Why it needs to get done
To allow applications to apply grammar without requiring the `build_for` or `platform` arguments. See an example of the problem in snapcraft's [ google:ubuntu-24.04-64:tests/spread/core24/grammar:amd64](https://github.com/canonical/snapcraft/actions/runs/8209947752/job/22456602084#step:4:376).
Contributor guide
Research direction
Start with the linked Snapcraft pull-request discussion and the referenced spread job, tests/spread/core24/grammar:amd64, to reproduce the failure when build_for or platform is absent. Trace project loading for advanced grammar and confirm that commands can load the applicable project items without those arguments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100