Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

dep: Use hidden tempdir for old vendor #1309

Merged
merged 1 commit into from
Oct 24, 2017

Conversation

sdboyer
Copy link
Member

@sdboyer sdboyer commented Oct 24, 2017

What does this do / why do we need it?

If the txn writer leaves a vendor.orig directory behind, subsequent runs will barf on it - #1304.

While there's more work to be done in making all of this safe in the event of a signal being sent to dep, this change at least means that if a signal is sent during the rename and a .vendor.orig directory is left behind, subsequent runs will treat its contents as ignored.

What should your reviewer look out for in this PR?

Do you need help or clarification on anything?

Which issue(s) does this PR fix?

Fixes #1304

While there's more work to be done in making all of this safe in the
event of a signal being sent to dep, this change at least means that if
a signal is sent during the rename and a .vendor.orig directory is left
behind, subsequent runs will treat its contents as ignored.

Fixes golang#1304
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vendor.orig causes subsequent dep ensure's to explode
2 participants