Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo -V prevents packages from installing automatically #380

Open
JonathanAnderson opened this issue Aug 20, 2018 · 1 comment
Open

sudo -V prevents packages from installing automatically #380

JonathanAnderson opened this issue Aug 20, 2018 · 1 comment

Comments

@JonathanAnderson
Copy link
Contributor

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 #325

I've placed the following in my ~/.julia/config/startup.jl

if "NOSUDO" ∉ keys(Base.ENV)
    Base.ENV["NOSUDO"] = "true"
end
@aviks
Copy link
Contributor

aviks commented Jun 18, 2019

#325 is merged now, this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants