question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is cross-cell configuration possible?

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
njlrcommented, Aug 11, 2017

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

0reactions
cpsauercommented, Dec 21, 2018

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found