Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

fix: saveSpec should follow symlinks #126

Closed
wants to merge 1 commit into from

Conversation

ruyadorno
Copy link
Contributor

When saving the ideal tree metadata any installed directory provenant
from a file: protocol was using the given filepath to store. This
causes all future calls to loadActual to return invalid edges for
loaded links since their fetchSpec won't match what was put in the
stored metadata.

This changes fixes it by making sure we properly follow symlink
realpaths prior to saving the tree metadata.

When saving the ideal tree metadata any installed directory provenant
from a `file:` protocol was using the given filepath to store. This
causes all future calls to `loadActual` to return invalid edges for
loaded links since their fetchSpec won't match what was put in the
stored metadata.

This changes fixes it by making sure we properly follow symlink
realpaths prior to saving the tree metadata.
@ruyadorno ruyadorno force-pushed the fix-save-spec-follow-symlinks branch from 7986acc to 7b7847d Compare September 11, 2020 17:22
@ruyadorno ruyadorno requested a review from isaacs September 11, 2020 17:22
@ruyadorno
Copy link
Contributor Author

closing this fix in favor of #129 which should be a more proper solution

@ruyadorno ruyadorno closed this Sep 12, 2020
@darcyclarke darcyclarke added this to the OSS - Sprint 15 milestone Sep 25, 2020
@wraithgar wraithgar deleted the fix-save-spec-follow-symlinks branch April 22, 2021 17:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants