cli icon indicating copy to clipboard operation
cli copied to clipboard

Replacing `os.Rename()` usage

Open lumtis opened this issue 3 years ago • 0 comments

Context: https://github.com/ignite/cli/pull/2643#discussion_r930005952

Under some circumstances os.Rename() can fail on some machine because of directory with different partition

We should replace Rename usage in case there can be different partition, like usage of /tmp

Solution

Possibly implementing https://gist.github.com/var23rav/23ae5d0d4d830aff886c3c970b8f6c6b and replace os.Rename usage

lumtis avatar Jul 26 '22 14:07 lumtis