cli
cli copied to clipboard
Replacing `os.Rename()` usage
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