Skip to content

Conversation

tyru
Copy link
Member

@tyru tyru commented Dec 23, 2017

% volt self-upgrade
[INFO] Found update: v0.1.4-alpha -> v0.2.1
[ERROR] Failed to self-upgrade: fork/exec /home/thinca/.go/bin/volt: text file busy

P.S.

  • Thanks @thinca for report on vim-jp slack.
  • Thanks @mattn for suggesting the code.

"defer" executes given expression at the end of function (not the end of scope).
To rename "volt[.exe].latest", must close the file handle.

Thanks @mattn for suggesting the code!
@tyru tyru force-pushed the self-upgrade-error branch from 0f45444 to 8e702bb Compare December 23, 2017 16:59
@tyru tyru merged commit 4a76c51 into devel Dec 24, 2017
@tyru tyru deleted the self-upgrade-error branch December 24, 2017 00:47
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.

1 participant