Git Product home page Git Product logo

Comments (6)

milibopp avatar milibopp commented on May 23, 2024 1

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.

milibopp avatar milibopp commented on May 23, 2024

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.

milibopp avatar milibopp commented on May 23, 2024

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.

jacebrowning avatar jacebrowning commented on May 23, 2024

That sounds pretty good to me!

from gitman.

jacebrowning avatar jacebrowning commented on May 23, 2024

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.

jacebrowning avatar jacebrowning commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.