BinDeps.jl
BinDeps.jl copied to clipboard
`sudo -V` prevents packages from installing automatically
Now, that Julia is at 1.0, I wanted to make a bigger push for increased usage at our company. However I still face this issue when installing packages.
-
Currently, when BinDeps runs
sudo -V
to instantiatehas_sudo
, it causes my terminal to prompt for a sudo password (which I don't have) and when I get back to my terminal, my install of a package hasn't happened yet... It would be better to just be able to tell BinDeps that I don't have sudo. -
Additionally, at my company, when a non sudo enabled user tries to use sudo, an email is sent to our entire company as a security precaution. I want to encourage Julia adoption and no one wants to be spamming everyone whenever they install a new package.
I've updated a logic bug in my old pr and submitted PR https://github.com/JuliaPackaging/BinDeps.jl/pull/325
I've placed the following in my ~/.julia/config/startup.jl
if "NOSUDO" ∉ keys(Base.ENV)
Base.ENV["NOSUDO"] = "true"
end
#325 is merged now, this can be closed.