depot_tools gclient.py running into OSError: [Errno 18] Invalid cross-device link

342 views
Skip to first unread message

David Chen

unread,
Dec 21, 2016, 7:20:15 PM12/21/16
to Chromium-dev
So the issue occurs when I run gclient sync inside a Dockerfile, and at the end of the gclient sync, it tries to save the git folder of any repo that has been moved from DEPS. It runs into this error when it tries to do

os.rename(os.path.join(e_dir, '.git'), save_dir)

which would eventually run into this issue in docker: https://github.com/docker/docker/issues/19512

I guess what I wanted to say is, would it be safer to switch to using 

shutil.move(os.path.join(e_dir, '.git'), save_dir)

instead?


Reply all
Reply to author
Forward
0 new messages