Comments (4)
Unfortunately this option (--prefix
) does not create specified directory.
from cargo-clone.
This would be a great improvement.
Can you think of a case where this behaviour would be unwanted? If there are no such cases, I don't see a problem in adding this.
from cargo-clone.
For example, git clone
creates a new directory (if it does not exist) and fails only if the provided directory exists and is not empty:
Cloning into an existing directory is only allowed if the directory is empty.
I think, it is better to follow the least surprise way in the cargo-clone as well.
from cargo-clone.
Sure, sounds reasonable. Would you like to implement this? If not, I will do it as soon as time allows.
from cargo-clone.
Related Issues (20)
- Does not build with on systems using openssl 1.1 HOT 3
- Drop rustc-serialize dependency HOT 1
- cargo clone fails with 'Cannot reset hard' HOT 4
- cargo clone result in a full git repo HOT 8
- Cloning Specific Version from Crates.io HOT 8
- Git-like clone dir syntax
- Command line args not working on Windows HOT 4
- Support cloning multiple crates in one command
- Installation failed for unknown reason HOT 2
- Cargo clone cannot parse `Cargo.toml` manifest for some crates HOT 2
- Bundle with Cargo HOT 2
- Remove option to clone from git repo HOT 1
- Only allow downloading a single crate at a time HOT 1
- Move from docopt to clap
- Remove dependency on Cargo HOT 1
- Cargo clone as a library HOT 8
- v1.0.1 tag has changed HOT 3
- Only works for crates with a repo? HOT 7
- Fallback/Suggestions for hypen/underscore mismatch.
- Call invalidate_cache only once
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-clone.