← Back to issue list

Commands cannot always load projects with advanced grammar

View original Github issue

Metadata

Project
craft-application
Number
#261
Type
issue
State
open
Author
mr-cal
Labels
Created
2024-03-11 15:31:37+00:00
Updated
2025-05-23 17:27:01+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### 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).

Evaluation history

No evaluation history available.