Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

west: blobs fetch #84085

Closed
WilliamGFish opened this issue Jan 16, 2025 · 2 comments
Closed

west: blobs fetch #84085

WilliamGFish opened this issue Jan 16, 2025 · 2 comments
Assignees
Labels
area: Build System area: West West utility bug The issue is a bug, or the PR is fixing a bug Waiting for response Waiting for author's response

Comments

@WilliamGFish
Copy link
Collaborator

West blobs fetch failure

When attempting to retrieve blobs using the west command receive an error.

zephyrproject-rtos/mbedtls#61
(https://github.com/zephyrproject-rtos/mbedtls/pull/61/files#diff-27d260b3de385946dc5c56da8181a3a9d4f5897cfab9df6dc2f5bb56bb0bbd6f)
zephyr/module.yml

build:
  cmake-ext: True
  kconfig-ext: True
security:
  external-references:
    - cpe:2.3:a:arm:mbed_tls:3.6.1:*:*:*:*:*:*:*
    - pkg:github/Mbed-TLS/[email protected]

By reversing PR61
The west functionality works as expected

To Reproduce

\zephyr>west blobs fetch hal_infineon
ERROR: Malformed "build" section in file: /zephyr/modules/crypto/mbedtls/zephyr/module.yml
<SchemaError: error code 2: Schema validation failed:
 - Key 'security' was not defined. Path: ''.: Path: '/'>

Expected behaviour
Retrieval of the defined files/blobs.

Logs and console output

\zephyr>west blobs fetch hal_infineon
ERROR: Malformed "build" section in file: C:/Users/BillyBob/zephyrGoodX/modules/crypto/mbedtls/zephyr/module.yml
<SchemaError: error code 2: Schema validation failed:

  • Key 'security' was not defined. Path: ''.: Path: '/'>

Environment

  • OS: Windows
  • Toolchain Zephyr SDK
@WilliamGFish WilliamGFish added the bug The issue is a bug, or the PR is fixing a bug label Jan 16, 2025
@kartben kartben added the area: West West utility label Jan 16, 2025
@kartben
Copy link
Collaborator

kartben commented Jan 16, 2025

I am guessing you're on Zephyr <= 3.6, correct?
This is due to #66495 introducing new properties to describe CPE/PURL for modules, but the zephyr_module parser is apparently not happy when it sees keys it doesn't know about (which would be the case in Zephyr 3.6 or any version before 30eb588 went in.

@pdgendt pdgendt added the Waiting for response Waiting for author's response label Jan 16, 2025
@WilliamGFish
Copy link
Collaborator Author

I am using the very latest version (v4.0.0-3409-g9ba1f2e1704a)...BUT

It appears that my scripts folder has been come corrupted somehow. I shall try to manually resolve.

Thanks for the help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System area: West West utility bug The issue is a bug, or the PR is fixing a bug Waiting for response Waiting for author's response
Projects
None yet
Development

No branches or pull requests

3 participants