Git Product home page Git Product logo

Comments (5)

olson-sean-k avatar olson-sean-k commented on July 23, 2024

Why is this useful? It seems strange to need two or more copies of a module, and even stranger (not to mention fragile) to depend on the merge order. Do you have a particular use case in mind?

How would the tuples (pairs) be encoded? Seems like it could make peru.yaml more complicated.

imports:
  -
    module: foo
    path: /put/foo/here
  -
    module: foo
    path: /put/foo/here/too

Yuck.

imports:
  -
    - foo
    - /put/foo/here
  -
    - foo
    - /put/foo/here/too

Also yuck.

from peru.

oconnor663 avatar oconnor663 commented on July 23, 2024

I was imagining that it would look like this:

imports:
    - foo: ./path/to/
    - bad: ./path/

So the only difference would be the leading dashes. I'm sure there will eventually be use cases where we want the same module imported more than once. I've wanted it myself in the past for writing tests.

from peru.

olson-sean-k avatar olson-sean-k commented on July 23, 2024

Right, somehow I hadn't even considered that encoding. Small price for flexibility, and testing is probably a good use case alone.

Is the idea to support both a list of pairs and the dictionary used today?

from peru.

oconnor663 avatar oconnor663 commented on July 23, 2024

That would be the idea. That's similar to what we've done with plugins (which we're going to rip out thank God) and files.

from peru.

oconnor663 avatar oconnor663 commented on July 23, 2024

https://phabricator.buildinspace.com/D60

from peru.

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.