sifive / wit

Workspace Integration Tool
Apache License 2.0
22 stars 13 forks source link

Wit Bash Script Can't Handle Symlinks #212

Open seldridge opened 4 years ago

seldridge commented 4 years ago

The bash magic used by the wit bash script to locate itself doesn't work if symbolic links are involved. This comes up if using something like GNU stow for local "package management".

The following works great on Linux, but will not work on OSX as there's no readlink -f for OSX:

script_dir="$(dirname "$(readlink -f "$0")")"

See: https://unix.stackexchange.com/a/17500

jackkoenig commented 4 years ago

This may be resolved by https://github.com/sifive/wit/pull/206 making Wit a pip installable package.

mmjconolly commented 4 years ago

@seldridge you can now install via python3 -m pip install wit-sifive if you want to bypass the wit bash script