Your solution is elegant and I learnt something, thank you 👍
There is also another (elegant) solution, the --show-build-log-on-failure option of cpm handles this use case :
--show-build-log-on-failure
cpm
cpm install Your:Module --show-build-log-on-failure
Along with speed, this is one of the two killer features of cpm for me !
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Your solution is elegant and I learnt something, thank you 👍
There is also another (elegant) solution, the
--show-build-log-on-failure
option ofcpm
handles this use case :Along with speed, this is one of the two killer features of
cpm
for me !