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

Fix symlink package spec validation #4870

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

willmmiles
Copy link
Contributor

While developing a library package, I tried to use a symlink:// specification in my test application to point to my library's development checkout. Unfortunately this seemed to cause a number of issues:

  • The symlinked package did not appear in platformio pkg list
  • Every build would "re-install" the symlink package
  • As a result of the "reinstallation", the PlatformIO VSCode plugin would try to re-configure itself mid-build, causing a number of failures as it deleted some of the working build folders

I traced this to the installed symlink package not matching its own pkg spec in package/manager/base.py. It looks like it just needed the same abspath() check as a file:// specification.

When validating symlink:// packages, use the specified symlink path,
the same as for file:// packages.  This fixes missing symlink packages
in 'pkg list' and reinstalling on every build.
@CLAassistant
Copy link

CLAassistant commented Mar 3, 2024

CLA assistant check
All committers have signed the CLA.

@ivankravets ivankravets added this to the 6.1.14 milestone Mar 3, 2024
@ivankravets ivankravets merged commit 430acc8 into platformio:develop Mar 16, 2024
1 check passed
@ivankravets
Copy link
Member

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants