danmakenoise / link-status

A simple CLI to display all of the Node modules you have currently linked through `npm link`.
7 stars 2 forks source link

Broken under github actions #7

Open ssbarnea opened 2 years ago

ssbarnea commented 2 years ago

I know that the project is quite old but as I did need to debug existing links I decided to give it a go. Locally it works exactly as advertised but when running the same command under gihub actions (ubuntu), the script did not display anything than a long list of newlines. See https://github.com/ansible/ansible-language-server/runs/4078323194?check_suite_focus=true

Interestingly it did not return an error exist code, but the output was of no use either.

After some extra searching online I was able to find a workaround that does not need any extra tools, documenting it here in case someone would find it useful:

npm ls --link=true --depth=0