You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command vg ensure run within the project directory and activated workspace returns:
(project) [user@machine project][✔]$ vg ensure
Running "dep ensure"
Error: Couldn't move the vendor directory to the active workspace: rename vendor /home/user/.virtualgo/project/src: invalid cross-device linkUsage: vg ensure [-- [arguments to dep ensure]] [flags]Flags: -h, --help help for ensureCouldn't move the vendor directory to the active workspace: rename vendor /home/uservirtualgo/project/src: invalid cross-device link
Hmm, it should probably fallback to copying and removing in that case. As a workaround for now you can use the current vg master. Then you can set the VIRTUALGO_ROOT variable to something on the same device as your project. That should make it work.
I'm a bit confused by this workaround. When would you set the VIRTUALGO_ROOT? I'm trying to get this working with a home directory in the Windows filesystem and the project directory on WSL.
The problem is that vg runs the go version of mv $yourgoproject/vendor $VIRTUALGO_ROOT/$VIRTUALGO/src. But mv fails when the source and target are not on the same filesystem. So to workaround make sure that your project and $VIRTUALGO_ROOT are on the same filesystem.
Command
vg ensure
run within the project directory and activated workspace returns:This is caused by the fact that my home directory is located on one device (
/dev/sdb3
) and my project directory on another (/dev/sda1
). Call toos.Rename
(https://github.com/GetStream/vg/blob/master/cmd/ensure.go#L143) will return aLinkError
.The text was updated successfully, but these errors were encountered: