B
BlueBuild2mo ago
Ion

default-flatpaks v2 migration issue

I updated my default-flatpaks config to use the new module, but my builds fail.
[12:02:20 ERROR] => Failed:
× Recipe ./recipes/ptinopedila-home-nvidia.yml failed to validate
╰─▶ × 1 error encountered
╭─[./recipes/common_modules/default-flatpaks.yml:1:1]
1 │ type: default-flatpaks
· ┬
· ╰── value is not valid under any of the schemas listed in the
'anyOf' keyword
2 │ configurations:
╰────
help: Try adding these lines to the top of your file for editor
validation
highlights:
---
# yaml-language-server: $schema=https://schema.blue-
build.org/module-
v1.json

help: Use `bluebuild validate --all-errors ./recipes/ptinopedila-home-
nvidia.yml` to view more information.
If you're using a local module, be sure to add `source: local` to the
module entry

Error: Process completed with exit code 1.
[12:02:20 ERROR] => Failed:
× Recipe ./recipes/ptinopedila-home-nvidia.yml failed to validate
╰─▶ × 1 error encountered
╭─[./recipes/common_modules/default-flatpaks.yml:1:1]
1 │ type: default-flatpaks
· ┬
· ╰── value is not valid under any of the schemas listed in the
'anyOf' keyword
2 │ configurations:
╰────
help: Try adding these lines to the top of your file for editor
validation
highlights:
---
# yaml-language-server: $schema=https://schema.blue-
build.org/module-
v1.json

help: Use `bluebuild validate --all-errors ./recipes/ptinopedila-home-
nvidia.yml` to view more information.
If you're using a local module, be sure to add `source: local` to the
module entry

Error: Process completed with exit code 1.
Does anyone have a minute to take a look at tell me what I'm missing please?
GitHub
feat: transition to the new default-flatpaks module and a new set o...
The Fedora Workstation for economic research; built on Fedora Silverblue and Universal Blue. - feat: transition to the new default-flatpaks module and a new set of … · ptinopedila/ptinopedila@2d8414a
Solution:
First key under "configurations:" needs "-", as its an array, you're missing that since you commented out the notify line
Jump to solution
8 Replies
amel
amel2mo ago
try to add this
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
at the very beginning of your main recipe file
Ion
IonOP2mo ago
No description
Ion
IonOP2mo ago
The properties name, description, base-image, image-version, and modules are all defined in the file that this yaml file is imported from https://github.com/ptinopedila/ptinopedila/blob/main/recipes/ptinopedila-home-nvidia.yml
amel
amel2mo ago
try to remove the # before notify. could be an error due to to a missing -
amel
amel2mo ago
or add a - before scope. this validates
No description
amel
amel2mo ago
and FYI
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
---
# yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
is ideally placed in the main image recipe files so recipes/ptinopedila-*.yml in your case
Solution
hellothere
hellothere2mo ago
First key under "configurations:" needs "-", as its an array, you're missing that since you commented out the notify line
Ion
IonOP2mo ago
Thank you. That was it

Did you find this page helpful?