Closed aznashwan closed 4 months ago
Coincidentally, a recent merge affected this message. Now, this platform declaration:
platforms:
my-platform:
build-on: amd64
gives this error message, which includes the platform name:
❯ rockcraft pack
Bad rockcraft.yaml content:
- value is not a valid list (in field 'platforms.my-platform.build-on')
in my opinion this is enough of an improvement, what do you think?
Coincidentally, a https://github.com/canonical/rockcraft/pull/567 affected this message. Now, this platform declaration:
The new error message looks great, way clearer than the original error with no potential for confusion!
Thank you, and please feel free to mark this issue as 'resolved'.
Bug Description
When mis-inputting the
platforms.<platform>.build-on
rockcraft.yaml field as a single string instead of a list of strings, the resulting error message makes it sound like the<platform>:
dict should be the one which is a list.To Reproduce
Please
rockcraft build
the below-listedrockcraft.yml
.Environment
snap install rockcraft --classic
)rockcraft.yaml
Relevant log output