Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Formula structure #6

Closed
ickc opened this issue Jan 14, 2017 · 3 comments
Closed

Formula structure #6

ickc opened this issue Jan 14, 2017 · 3 comments

Comments

@ickc
Copy link
Member

ickc commented Jan 14, 2017

Split off from #2, particularly this post:

Proposed structure

/packages/filters/myfilter.yaml
/packages/filters/anotherfilter.yaml
/packages/templates/sometemplate.yaml
/packages/csl/somecsl.yaml
/packages/style/somestyle.yaml
@ickc
Copy link
Member Author

ickc commented Jan 14, 2017

Comments:

  • the root packages/ folder seems unnecessary.
  • we could potentially opt for a flat structure, like homebrew-cask's.
    • For:
      • Since the info of the kind of package is in the formula
    • Against:
      • for our limited use, managing an extra folder hierarchy is simple
      • easier when browsing and editing by humans
  • If we forego an index file (see formula spec #7), we probably need to clone all formulae locally, say, to $DATADIR/pandocpm.

@ickc ickc added question and removed agreed? labels Jan 14, 2017
@sergiocorreia
Copy link
Contributor

  • Agree that the packages folder seems unnecesary
  • There are some disadvantages with a flat structure. EG if I click on the link you mentioned, I get "Sorry, we had to truncate this directory to 1,000 files. 2,519 entries were omitted from the list.". On top of that, there are filesystem slowdowns related with having many files in the same folder.

@ickc
Copy link
Member Author

ickc commented Jan 15, 2017

So let's use the proposed structure minus the root packages/ folder.

@ickc ickc closed this as completed Jan 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants