Skip to content

cargo should install to ./.cargo by default instead of ~/.cargo #1756

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

Closed
brson opened this issue Feb 5, 2012 · 6 comments
Closed

cargo should install to ./.cargo by default instead of ~/.cargo #1756

brson opened this issue Feb 5, 2012 · 6 comments

Comments

@brson
Copy link
Contributor

brson commented Feb 5, 2012

This is what npm does and it's pretty cool that it keeps all your projects isolated.

@nikomatsakis
Copy link
Contributor

+1

@killerswan
Copy link
Contributor

So when you want to install something onto your system path (if ~/.cargo/bin is on the path), just cd ~ and install, but whenever you just want a local project copy, cd project_XYZ and install?

@brson
Copy link
Contributor Author

brson commented Feb 5, 2012

Not sure. It looks like npm has two modes, local, and global. local puts it into the current working directory, and global puts it at the install prefix. It doesn't even have a mode to put it under the user's directory.

@killerswan
Copy link
Contributor

For Haskell, Cabal-Dev does sandboxed installs like that as a way to compensate for the hellish way that Cabal fails to support multiple versions of libraries and has no uninstall option. It is easy to use, but not simple (to borrow Rich Hickey's terminology).

Can some of this dependency sandboxing be automated through import statements, rather than left as something every library user has to manually do?

@graydon
Copy link
Contributor

graydon commented Feb 5, 2012

We have versioning. It's not complete, but it's an Actual Concept in rust linkage rules.

@graydon
Copy link
Contributor

graydon commented Feb 15, 2012

I believe #1760 fixed this.

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

4 participants