Comments (5)
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.
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.
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.
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.
https://phabricator.buildinspace.com/D60
from peru.
Related Issues (20)
- Fail to sync repo with Git LFS: "directory is not empty" HOT 2
- Peru/SVN: Can not import files from a repo-path that existed in the past but has been moved HOT 8
- peru behaves differently when called from a sub-directory (where peru.yaml is located) HOT 6
- JavaScript version to embed in Electron? HOT 6
- Bug: reup considers master as default branch HOT 5
- Create a Contributing File HOT 1
- Allow curl module to be used as http module HOT 2
- Cannot download package possibly because of urllib defaults HOT 8
- Git 2.34 changed read-tree's handling of .gitignore files HOT 1
- Peru should check for the presence of external tools before invoking them HOT 2
- Merging at the top level broken in git 2.36 HOT 2
- Feature Request: Add to .gitignore
- Doubt: is peru able to list the hashes for the git module? HOT 2
- Feature Request: Do not trade same files as merge conflict HOT 2
- on `reup` update rev with latest tag if rev is a tag HOT 1
- Why `If --file or --sync-dir is set, the other must also be set`?
- Release wheel package
- Import error when running from a venv HOT 2
- Import to home folder HOT 2
- Less verbose verbosity: progress output per percentage
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 peru.