Skip to content

build: include dotslash files and improve error messages #956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thoughtpolice
Copy link
Contributor

This makes it way easier to test buck2-with-buck2 bootstrap builds. It also tries to fix #948

This makes it much easier to test buck2-with-buck2 builds.

Signed-off-by: Austin Seipp <[email protected]>
If you don't generate a proper BUCK file with `reindeer` then the build
fails rather mysteriously. Instead we can use a trick to force a bad
error: an ordinary BUCK file that will always fail(), and have reindeer
instead generate a BUCK.v2 file which will then be loaded first and
take priority.

Signed-off-by: Austin Seipp <[email protected]>
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 9, 2025
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. (Because this pull request was imported automatically, there will not be any future comments.)

Copy link
Contributor

@lf- lf- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really clever! if the dotslash solution isn't acceptable, the BUCK trick could definitely be committed without the dotslash piece.

@thoughtpolice
Copy link
Contributor Author

Yeah, if upstream is OK with this (I have no idea why the lint is failing) then I'm happy to update the documentation on bootstrapping the build, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message for missing reindeer files when buck2 build //app/buck2:buck2-bin does not build
3 participants