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.

Hook for automatically generated .buckconfig?

See original GitHub issue

In Buckaroo we are overwritting .buckconfig.local with automatically generated values for [repositories]. This is less than ideal, because if the user has important configuration there it is lost.

It would be possible for us to parse and merge the existing .buckconfig.local (discussion), but this would be a brittle solution.

Instead, perhaps Buck could provide a hook for this? For example, we could introduce a new .buckconfig designed for generated values. For example (in order or precedence):

  • .buckconfig
  • .buckconfig.generated
  • .buckconfig.local

Would this fit with the overall design direction of Buck?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:20 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
styurincommented, Dec 7, 2018

.buckconfig supports including other files, see “Configuration files can include other files” here: https://buckbuild.com/files-and-dirs/buckconfig.html.

You can create .buckconfig.generated file and include it from .buckconfig:

<?file:.buckconfig.generated>

The question mark instructs buck not to fail when that file doesn’t exist.

1reaction
nikhedoniacommented, Aug 23, 2017

well, you can create a buck wrapper script when initializing buckaroo repo, which would call buck and pass appropriate overrides

Unfortunately then we would need to call the script using a relative path… One nice feature of Buck is that you can invoke any buck command from any sub directory and it just works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buck: .buckconfig
Xcode projects generated by Buck by default use header maps for header search paths ... e.g. buck build buck , this will be...
Read more >
/ - gitiles - Git at Google
Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls,...
Read more >
react-native-lib-test - npm
Sample of context-api with `react-hook` (`useContext`). 2. ... runs at http://localhost:8080 , but should be automatically opened for you.
Read more >
.buckconfig · master · parity / Mirrored projects / parity-signer · GitLab
fix: update metadata * docs: created issue for stock metadata updates * docs: lint * feat: add generalized metadata storage mwp * feat:...
Read more >
How to Create a Buck-based C/C++ Project | HackerNoon
Organizing Your Files · A .buckconfig is required before you can run any Buck commands. · The BUCK file is where we will...
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