Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

sudo -V prevents packages from installing automatically #380

@JonathanAnderson

Description

@JonathanAnderson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions