Is cross-cell configuration possible?
See original GitHub issueI did some experiments on cells (https://github.com/njlr/buck-cell-config) and found that each cell compiles with its own .buckconfig
, rather than the .buckconfig
at the top-level. This is reasonable, but now what I expected!
This can cause issues when trying to set project-global settings such as compiler flags and language standards. I would rather not edit the .buckconfig
in each target because it means modifying each cell.
Does Buck provide a mechanism for injecting global settings to all cells in a project?
I’m envisioning something like this, in order of stacking:
.buckconfig.global
.buckconfig
.buckconfig.local
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Cross-cell configuration between IBM Business Monitor and ...
This document describes a cross-cell configuration between IBM Business Monitor and IBM Business Process Manager (BPM) to allow for the ...
Read more >How to Set up and Configure the Cross‑sell & Upsell Suite on ...
It is possible to configure the app to automatically put out of customers' sight those goods that are no longer available for sale....
Read more >Cross-sells | Stripe Documentation
A cross-sell is a product that you can add to an order using Checkout. ... You can configure a cross-sell in the Dashboard...
Read more >Cross Sell element - Increase the conversion rate
Cross Sell elements configuration. Styling configuration ... In order to use this element, the Cross Sell app has to be installed on your...
Read more >What is Cross-Selling? Plus 3 Tips, 5 Methods & Examples.
In an agency environment, if a client hired you to design ad graphics, you might cross-sell them on post-click landing page design services....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @bertmaher.
This capability is quite critical for us, and we would be willing to contribute the code if required to make it happen. Do you think one of the Buck team could provide some design direction?
cc @nikhedonia
I wanted to say that I’d had the same expectations as @njlr. It’s problematic to not be able to set, e.g., language standards, deployment targets (see referenced issue above), optimization levels, and debug symbols project-wide. Perhaps a better behavior would just be to have cells inherit their parent’s configuration by default?
In the meantime, for anyone else reading, you can solve this with a bit of a hack. Just prefix each cell’s .buckconfig with an import of the parent cell’s .buckconfig, i.e.,
<file:../../../../.buckconfig>
. This should really be inheritance, because buck’s INI parser takes the second value if you specify something twice (at least in my tests on macOS 10.14).