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
Install dependencies from local path using symlinks
Previously, the shared function used to install dependencies from local paths used copy instead of symlinks.
The switch to using copy for everything was done for a couple of reasons:
- Some functions were already using copy/move to install because they worked from temporary folders that are deleted by the context manager
- Use of symlinks on Windows requires the script to be run as administrator, which makes it less friendly to contributors or users running the script locally who are using Windows
However, the previous symlinks were essential for the deltas feature to work for libraries or platforms under test because these are installed to a different location than the repository that is checked out to the delta and head refs.
When the project under test is a sketch, symlinks are not necessary, since the sketch is run in place, which is why this bug was not detected via minimal informal integration tests.
The first reason to copy listed above is easily overcome by changing the code to create temporary folders with the required lifespan.
The second remains, but it's easy enough to find the solution to the error message resulting from running the script without the necessary permissions.
0 commit comments