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

[cpackget] Does not seem to install package from requirement of the pdsc #360

Closed
jkrech opened this issue Oct 21, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@jkrech
Copy link
Member

jkrech commented Oct 21, 2024

Describe the bug
When installation the pack NXP::FRDM-MCXN947_BSP@19.1.0-dev16
cpackget should install NXP::MCXN947_DFP@19.0.0 or higher due to a package requirement in the pdsc file.
If NXP::MCXN947_DFP@17.0.0 is already installed the tool's version check is incorrectly seeing the above requirement satisfied.
see: Open-CMSIS-Pack/devtools#1819

To Reproduce
Steps to reproduce the behavior:
Install these packs:
a) NXP::MCXN947_DFP@17.0.0
b) https://github.com/VladimirUmek/NXP_FRDM-MCXN947_BSP/releases/tag/v19.1.0-dev
using cpackget add ... -v

see output:

D: installing package requirements
D: found [MCXN947_DFP NXP 19.0.0:_] dependency
D: found [MCXN947_DFP NXP 19.0.0:_] dependency
D: Extracting pack info from "NXP.MCXN947_DFP.19.0.0:_"
D: "NXP.MCXN947_DFP.19.0.0" is a packID with Vendor="NXP", Pack="MCXN947_DFP", Version="19.0.0:_", VersionModifier="6"
D: Found "NXP.MCXN947_DFP.pdsc" in "C:\Users\jkrech\AppData\Local\Arm\Packs\.Web"
D: Checking if NXP.MCXN947_DFP. is installed
D: Reading pidx from file "C:\Users\jkrech\AppData\Local\Arm\Packs\.Local\local_repository.pidx"
D: Listing files and directories in "C:\Users\jkrech\AppData\Local\Arm\Packs\NXP\MCXN947_DFP" that match ".*"
D: Checking if NXP.MCXN947_DFP. is installed
D: Reading pidx from file "C:\Users\jkrech\AppData\Local\Arm\Packs\.Local\local_repository.pidx"
D: Listing files and directories in "C:\Users\jkrech\AppData\Local\Arm\Packs\NXP\MCXN947_DFP" that match ".*"
D: Checking for installed packs >=19.0.0:_
D: - checking if 17.0.0 >= 19.0.0:_
D: - found newer version 17.0.0

The last three lines document the bug:
found newer version 17.0.0 is incorrect for the comparison of 17.0.0 >= 19.0.0:_

Expected behavior
The expectation is that no newer version is found an that version 19.0.0 would be installed (latest public version).

Environment (please complete the following information):

  • OS: windows/
  • Version: 2.1.4 (nightly 12)
@jkrech jkrech added the bug Something isn't working label Oct 21, 2024
@jkrech jkrech moved this to Done in CMSIS-Toolbox 2.7.0 Oct 24, 2024
@jkrech jkrech closed this as completed by moving to Done in CMSIS-Toolbox 2.7.0 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants