how to organize formula that relies on platform-independent data files that themselves require building? #5105
Unanswered
aryairani
asked this question in
Writing Formulae/Casks
Replies: 1 comment 4 replies
-
If it doesn't register as platform independent that means it's detecting something specific for the platform. Making a pull request would be the only real way to debug that |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I've got Haskell project
A
, a command-line tool with a built-in web service, and Node projectB
, which generates the static html/js resources for the built-in web service inA
.The output of
B
, since it's just html/css/js files, doesn't change based on which OS or architecture it's built with.Option 1: Currently we have a formula for
A
that treatsB
as a resource that's retrieved and staged during the built ofA
, but that seemed wasteful to me —A
does need to be built for each OS and architecture, so this ends up buildingB
multiple times as well — once for each bottle of A, which seem somewhat wasteful.Option 2: I make a separate formula for
B
, and thenA
's formuladepends_on "B"
; I reference the specific files as(Formula["B"].opt_share/"b-stuff")
in a launcher script forA
. But even thoughbrew --build-bottle
detects thatB
is relocatable, it doesn't detect that it's platform independent, so I still would end up having to buildB
multiple times for no clear reason other than "because".Beta Was this translation helpful? Give feedback.
All reactions