You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check pdsc files in a pack and correct version compare (#574)
## Fixes
- check the position of pdsc files inside a pack for correctness
- corrected version compare with list --updatable and existing local
pack installations
## Changes
- search a pack for existing pdsc files
- check version of local installations before those in the index
## Checklist
<!-- Put an `x` in the boxes. All tasks must be completed and boxes
checked before merging. -->
- [ ] 🤖 This change is covered by unit tests (if applicable).
- [x] 🤹 Manual testing has been performed (if necessary).
- [x] 🛡️ Security impacts have been considered (if relevant).
- [x] 📖 Documentation updates are complete (if required).
- [x] 🧠 Third-party dependencies and TPIP updated (if required).
Copy file name to clipboardExpand all lines: cmd/errors/errors.go
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -32,16 +32,18 @@ var (
32
32
ErrBadPackVersion=errors.New("bad pack version: cannot add a version with build metadata")
33
33
34
34
// Errors related to package content
35
-
ErrPdscFileNotFound=errors.New("pdsc not found")
36
-
ErrPackNotInstalled=errors.New("pack not installed")
37
-
ErrPdscEntryExists=errors.New("pdsc already in index")
38
-
ErrPdscEntryNotFound=errors.New("pdsc not found in index")
39
-
ErrEula=errors.New("user does not agree with the pack's license")
40
-
ErrExtractEula=errors.New("user wants to extract embedded license only")
41
-
ErrLicenseNotFound=errors.New("embedded license not found")
42
-
ErrPackRootNotFound=errors.New("no CMSIS Pack Root directory specified. Either the environment CMSIS_PACK_ROOT needs to be set or the path specified using the command line option -R/--pack-root string")
43
-
ErrPackRootDoesNotExist=errors.New("the specified CMSIS Pack Root directory does NOT exist! Please take a moment to review if the value is correct or create a new one via `cpackget init` command")
44
-
ErrPdscFileTooDeepInPack=errors.New("pdsc file is too deep in pack file")
35
+
ErrPdscFileNotFound=errors.New("pdsc not found")
36
+
ErrPackNotInstalled=errors.New("pack not installed")
37
+
ErrPdscEntryExists=errors.New("pdsc already in index")
38
+
ErrPdscEntryNotFound=errors.New("pdsc not found in index")
39
+
ErrEula=errors.New("user does not agree with the pack's license")
40
+
ErrExtractEula=errors.New("user wants to extract embedded license only")
41
+
ErrLicenseNotFound=errors.New("embedded license not found")
42
+
ErrPackRootNotFound=errors.New("no CMSIS Pack Root directory specified. Either the environment CMSIS_PACK_ROOT needs to be set or the path specified using the command line option -R/--pack-root string")
43
+
ErrPackRootDoesNotExist=errors.New("the specified CMSIS Pack Root directory does NOT exist! Please take a moment to review if the value is correct or create a new one via `cpackget init` command")
44
+
ErrPdscFileTooDeepInPack=errors.New("pdsc file is too deep in pack file")
45
+
ErrMultiplePdscFilesInPack=errors.New("multiple pdsc files found in pack file, cannot determine which one to use. Please remove the extra pdsc files")
46
+
ErrPdscWrongName=errors.New("pdsc file has wrong name, it should be <PackID>.pdsc")
0 commit comments