BinDeps.jl icon indicating copy to clipboard operation
BinDeps.jl copied to clipboard

`sudo -V` prevents packages from installing automatically

Open JonathanAnderson opened this issue 6 years ago • 1 comments

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.

  1. Currently, when BinDeps runs sudo -V to instantiate has_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.

  2. 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

JonathanAnderson avatar Aug 20 '18 19:08 JonathanAnderson

#325 is merged now, this can be closed.

aviks avatar Jun 18 '19 20:06 aviks