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

Helm Charts: Fix cross-device link error #720

Merged
merged 2 commits into from Jun 8, 2022

Conversation

julienduchesne
Copy link
Contributor

Closes #719
By using /tmp as a pull target, we possibly pull to a different disk than the destination
This makes os.Rename impossible
To fix this, we can pull to a temporary dir within the destination instead

Closes #719
By using `/tmp` as a pull target, we possibly pull to a different disk than the destination
This makes `os.Rename` impossible
To fix this, we can pull to a temporary dir within the destination instead
@julienduchesne julienduchesne requested a review from a team June 8, 2022 11:57
Copy link
Member

@iainlane iainlane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is the right way to do renames, nice one 👍

random semi-related question: is it possible that the destdir could exist already when you do the final Rename or is it guaranteed to not? the rename won't work if there's a directory there already

@julienduchesne
Copy link
Contributor Author

yes, this is the right way to do renames, nice one 👍

random semi-related question: is it possible that the destdir could exist already when you do the final Rename or is it guaranteed to not? the rename won't work if there's a directory there already

Pull is only called if the charts dir doesn't exist or if it was just removed (version update). So it shouldn't happen

@julienduchesne julienduchesne changed the title Helm Charts: Fix cross-link error Helm Charts: Fix cross-device link error Jun 8, 2022
@julienduchesne julienduchesne merged commit 3d39cc4 into main Jun 8, 2022
@julienduchesne julienduchesne deleted the julienduchesne/fix-cross-link branch June 8, 2022 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid cross-device link
2 participants