Open-CMSIS-Pack / devtools

Open-CMSIS-Pack development tools - C++
Apache License 2.0
69 stars 50 forks source link

Check `created-for:` with version number #1536

Closed ReinhardKeil closed 1 week ago

ReinhardKeil commented 1 month ago

The Problem To Be Solved Projects that are created for a newer version of the CMSIS-Toolbox should be rejected by a previous version.

Suggest A Solution To achieve that, the optional node created-for: at solution: level is used.

When the string does not start with cmsis-toolbox (upper/lower-case ignored), issue warning: solution created for unknown tool

When the version number is specified and it is higher then the current running tool issue error: solution requires newer CMSIS-Toolbox version x.y.z

jkrech commented 1 week ago

hello.csolution.yml:

  ...
  created-for: CMSIS-Toolbox@2.5.0
  ...
C:/projects/GitHub/csolution-examples/Hello/Hello.csolution.yml - error csolution: solution requires newer CMSIS-Toolbox version 2.5.0
error cbuild: exit status 1