ponylang / pony-stable

:horse: A simple dependency manager for the Pony language.
BSD 2-Clause "Simplified" License
134 stars 18 forks source link

Allow for packages to be stored in a sub-directory #2

Closed SeanTAllen closed 8 years ago

SeanTAllen commented 8 years ago

By default, pony-stable expects your dependency to be stored in the top level of its repo. For example, if you are looking for inspect, it expects there to be a inspect directory at the top level of the GitHub repository. Not all Pony libraries currently share that layout.

Until we have a package manager that can unify library directory layout, this commit add 'subdir' as a dependency option. For example:

{
  "deps": [
    { "type": "github", "repo": "aturley/osc-pony", "subdir": "src/" }
  ]
}

which will look for any dependencies (in this case osc-pony), not in the top level of the 'aturley/osc-pony' repo but rather in 'aturley/osc-pony/src'.

SeanTAllen commented 8 years ago

@jemc my editor removed some whitespace at the end of some lines. sorry about that. it muddies the commit little. if you want, i can go back through and try to add it back in.

jemc commented 8 years ago

Yeah, it's pretty typical for most peoples' editors to clobber my precious whitespace.

That the world at large insists on stripping all empty lines of their rightful aligned whitespace is just as annoying to me as my insistence on keeping the whitespace is to everyone else. I try not to make a big deal of it, since I'm in the minority here, but I remain quietly stubborn on my personal projects.

Rather than make you mess with it, I'll go back and replace the whitespace that was so callously discarded by your ruthless editor.