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
The predefined coverage-kcov flow downloads kcov, builds it and tries to install it with sudo. This is pretty dangerous and is totally unnecessary. It'd be much better to just check if kcov exists in $PATH and just print an error if it doesn't exist.
The text was updated successfully, but these errors were encountered:
today it both checks if it exists and also checks for min capabilities (meaning that its not an old kcov version that is not supported). only if it is old or not installed will it call sudo installation flow.
i know it feels risky, but the code is open source and you can see exactly what it does so there is a lot of transparency here. also you don't have to allow the sudo and it will just fail.
but i do feel its really helpful as it sets up everything for you which is not simple one liner so i would'nt want (as a user) to lose it.
@expenses i just pushed a commit which enables to have sudo invocation prevented for non CI envs.
you just need to define the CARGO_MAKE_SUDO_DISABLE env in your makefile and it will try to run kcov without trying to install first.
hope this helps you
The predefined
coverage-kcov
flow downloadskcov
, builds it and tries to install it withsudo
. This is pretty dangerous and is totally unnecessary. It'd be much better to just check ifkcov
exists in$PATH
and just print an error if it doesn't exist.The text was updated successfully, but these errors were encountered: