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

Suggestion: perform index update when "cbuild --packs" is called #185

Closed
2 of 13 tasks
vovamarch opened this issue Oct 17, 2024 · 1 comment
Closed
2 of 13 tasks

Suggestion: perform index update when "cbuild --packs" is called #185

vovamarch opened this issue Oct 17, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@vovamarch
Copy link

vovamarch commented Oct 17, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When cbuild [setup] is called with --packs, it is expected that the missing packs get downloaded and installed. However, if the pack index is not uptodate and doesn't contain information about a recently released pack that is now required by the project. there is a failure reported that this pack cannot be found. Current approach is for the user to perform cpackget update-index before cbuild.

The issue is likely to appear in local CLI environments and in CI workflows with cached pack downloads, if no periodic index update is implemented, and especially at times of new pack releases.

Expected Behavior

--packs option already sets an expectation that packs required by the project will be downloaded from the web. This could be combined with the index update for at least the packs used in the project saving an extra step for users.

Steps To Reproduce

No response

Affected tools

  • cbuild
  • cbuild2cmake
  • cpackget
  • csolution
  • packchk
  • svdconv

Affected operating systems

  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

Any

@vovamarch vovamarch added the bug Something isn't working label Oct 17, 2024
@jkrech jkrech added enhancement New feature or request duplicate This issue or pull request already exists and removed bug Something isn't working labels Oct 17, 2024
@jkrech
Copy link
Member

jkrech commented Oct 17, 2024

This is covered here:
Open-CMSIS-Pack/cpackget#355

Workaround: In a CI system that expects to work with latest packs the scripts should contain the cpackget update-index during setup.

@jkrech jkrech closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants