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: path problem when installing local packs #290

Closed
ReinhardKeil opened this issue Apr 23, 2024 · 2 comments
Closed

cpackget: path problem when installing local packs #290

ReinhardKeil opened this issue Apr 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ReinhardKeil
Copy link

cpackget adds the wrong path when drive letter on windows is not specified

To Reproduce
Steps to reproduce the behavior:

  1. checkout https://github.com/Open-CMSIS-Pack/csolution-examples and https://github.com/Open-CMSIS-Pack/pack-examples to these Windows directories:
    c:\w\csolution-examples
    c:\w\pack-examples
  2. set cd c:\w\csolution-examples as current directory
  3. use cpackget add \w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc

cpackget list now outputs:

`E: Keil.STM32U5xx_DFP@3.0.0-dev0 (installed via C:\w\csolution-examples\CubeMX\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc ) - error: open C:\w\csolution-examples\CubeMX\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc: The system cannot find the path specified.

Expected behavior
The path is correctly installed as

`I: Keil.STM32U5xx_DFP@3.0.0-dev0 (installed via C:\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc)

Environment:

  • Windows 10
  • cpackget 2.1.1
@jkrech jkrech added the bug Something isn't working label Apr 23, 2024
@ReinhardKeil
Copy link
Author

Adding to this problem: c: works, whereas C: reports an issue (see below).

>cpackget add c:\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc  
I: Adding pdsc "c:\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc"

C:\w\csolution-examples>cpackget add C:\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc  
I: Adding pdsc "C:\w\pack-examples\STM32U5xx_DFP\Keil.STM32U5xx_DFP.pdsc"
W: Found PDSC file with an equal but malformed path (using '\'). Correcting entry and reinstalling.

@jkrech jkrech assigned bgn42 and unassigned thorstendb-ARM Apr 30, 2024
@bgn42 bgn42 closed this as completed Sep 3, 2024
@bgn42 bgn42 reopened this Sep 3, 2024
bgn42 added a commit that referenced this issue Sep 6, 2024
jkrech pushed a commit that referenced this issue Sep 9, 2024
@jkrech
Copy link
Member

jkrech commented Sep 10, 2024

It now works for both lower and upper case drive letters (c:\ and C:\)

@jkrech jkrech closed this as completed Sep 10, 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
Development

No branches or pull requests

4 participants