JuliaLang / Juleps

Julia Enhancement Proposals
Other
67 stars 24 forks source link

Pkg.add(pkg) when pkg is installed #42

Closed JeffreySarnoff closed 7 years ago

JeffreySarnoff commented 7 years ago

currently,

Pkg.rm("MyPackage"); Pkg.rm("MyPackage");
Pkg.add("MyPackage")
# takes some time
Pkg.add("MyPackage")
# takes some time -- which is silly

Pkg.add(pkg) should return immediately with eg "$(pkg) already added" when pkg was add()ed already.

and

StefanKarpinski commented 7 years ago

Is this a bug report about the old package manager or a feature request for the new one?

JeffreySarnoff commented 7 years ago

feature request

StefanKarpinski commented 7 years ago

Is the feature request roughly that package add/rm operations should be idempotent?

JeffreySarnoff commented 7 years ago

yes

StefanKarpinski commented 7 years ago

They already are in the described and implemented designs, so I think it's safe to close this, no?

JeffreySarnoff commented 7 years ago

yep