Comments (6)
Sure, go ahead. Sorry for the long silence – I've stopped working on the project, where I had a use case for this feature and simply lost track of it.
from gitman.
I would love to take a stab at this, as I find it to be a useful feature. One could easily keep link
around though so that existing gitman.yml
continue to work.
from gitman.
As a suggestion of what the format could look like:
links:
- source: subfolder1
target: some/path/within/repo/
- source: subfolder2
target: other/path/
Here, source
would be relative to the dependency's working directory, whereas destination
is relative to the current working directory. Any bike-shedding on this?
from gitman.
That sounds pretty good to me!
from gitman.
Another (more challenging) option would be to let the link
attribute be a string or list of string dictionaries for backwards compatibility without adding a new attribute. I might look into that if you are able to get a first pass done using links
.
from gitman.
I have been thinking about this feature more lately and am planning to start implementing it.
The link
setting will become deprecated and translate to links
as follows:
link: ''
=>links: []
link: foo/bar
=>links: [{'source': '.', 'target': 'foo/bar'}]
where source
is relative to the root of the dependency and target
is relative to the root of the working tree.
This will also allow for links to files:
links:
- source: scripts/foobar.py
target: bin/foobar
The link creation phase might also be broken out from installation due to this added complexity.
from gitman.
Related Issues (20)
- Failing to install dependencies on Windows HOT 1
- Add `recurse` option in config HOT 5
- Feature request: Add ability to specify a default group for gitman commands HOT 6
- Install cannot mix sources and groups HOT 2
- YAML code highlighting is broken in the documentation HOT 1
- Default groups aren't honored for recursive installs/updates HOT 2
- Question: Is it possible to symlink a sub folder of the repository? HOT 5
- Using install and `--fetch`, gitman does not reset local branch to the remote version HOT 2
- Support for installing in "bare" with depth=1 and no .git folder HOT 4
- Document every field available in configuration files HOT 3
- Changes to 'sparse_paths' are not reflected on subsequent installs HOT 3
- UnicodeDecodeError occurs when running gitman update/install in Windows HOT 2
- Add dependencies from the CLI
- Clone sources in parallel
- Fix failing tests on Windows
- find_nested_configs does not use depth value or find depth > 2 packages HOT 2
- Authentication for HTTPS cloning HOT 7
- Symbolic links in nested repositories change after running gitman install HOT 9
- Support creating hard links (in additional to symlinks) HOT 7
- Detect changes in remote repositories when listing dependencies HOT 4
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 gitman.