cortoproject / corto

A hierarchical object store for connecting realtime machine data with web applications, historians & more
https://www.corto.io
MIT License
87 stars 14 forks source link

Fallback to copying binary when softlinking does not work #620

Closed SanderMertens closed 6 years ago

SanderMertens commented 7 years ago

Currently the corto buildsystem creates a softlink to an executable in the root of the project directory, so that a user can easily invoke the executable. The actual location of the executable is in $CORTO_TARGET, which is done so it can be started from anywhere on the system using corto run.

On some systems however creating softlinks does not work. This is typically the case when a VM is used, a project is located in a folder that is shared with the host OS and the host OS does not support softlinks (Windows). Currently, the buildsystem fails on creating the symbolic link when this happens.

Instead of failing, the buildsystem should fallback to copying the binary.

SanderMertens commented 6 years ago

This issue was reported on the old buildsystem. If issue resurfaces on new buildsystem, a new issue will be reported.