Replies: 2 comments 1 reply
-
|
To me, the "obvious" idea is to replace # Build local curl
brioche build ./packages/curl
# Build remote curl
brioche build curl
# Build curl test export
brioche build ./packages/curl#testSo basically, a local package must be specified by absolute path, or a relative path starting with This would also mean that the CLI would use the same syntax for specifying packages as As for the There are a few downsides with this approach:
|
Beta Was this translation helpful? Give feedback.
-
|
IMO brioche build
biroche build test
brioche build test ./packages/curl
brioche build curl,test ./packages/curl
brioche build default,test ./packages/postgresql,./packages/curl |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today, we use
-por-rflags to reference projects locally or from the registry, respectively:We also have a separate
-eflag to specify a different export:Finally, we have a
-cflag to specify a command to run:# Run `bin/psql` from Postgres project brioche run -p ./packages/postgresql -c bin/psqlThis syntax is both a bit cumbersome, and also limits what you can do with one command! For example, you can't build both
defaultandtestacross 2 packages in one command:It would be nice if we could figure out a way to handle this more consistently, especially to allow building multiple packages+exports at once
Beta Was this translation helpful? Give feedback.
All reactions