Skip to content

Commit

Permalink
fixes OSError: [Errno 18] Invalid cross-device link
Browse files Browse the repository at this point in the history
- Fixes when running inside docker containers
  • Loading branch information
mack1070101 committed Oct 23, 2020
1 parent 060d778 commit db54dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language_formatters_pre_commit_hooks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def download_url(url, file_name=None):
tmp_file.flush()
os.fsync(tmp_file.fileno())

os.rename(tmp_file_name, final_file)
shutil.copy(tmp_file_name, final_file)

return final_file

Expand Down

0 comments on commit db54dc9

Please sign in to comment.