Skip to content

fix(oss): add stub config_setting for build-for-distro to fix folly buck2 build#291

Open
ben-- wants to merge 1 commit into
facebookincubator:mainfrom
ben--:oss-folly
Open

fix(oss): add stub config_setting for build-for-distro to fix folly buck2 build#291
ben-- wants to merge 1 commit into
facebookincubator:mainfrom
ben--:oss-folly

Conversation

@ben--

@ben-- ben-- commented Jan 7, 2026

Copy link
Copy Markdown

OSS-only stub so that selectors referencing antlir//antlir/distro:build-for-distro don't break OSS builds. The constraint is never set in OSS, so this never matches.

@meta-cla meta-cla 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 Jan 7, 2026
@ben--

ben-- commented Jan 7, 2026

Copy link
Copy Markdown
Author

Proof that this works is in folly 2542

@afrind

afrind commented Jan 26, 2026

Copy link
Copy Markdown

The import failed. @ben-- can you rebase and resolve conflicts?

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@ben-- has updated the pull request. You must reimport the pull request before landing.

@ben--

ben-- commented Feb 2, 2026

Copy link
Copy Markdown
Author

This change is unlikely to merge cleanly because it creates OSS stub implementations in antlir/distro/BUCK.

Not knowing internal constraints, I can think of two conceptual solutions:

  1. Publish the internal antlir/distro/BUCK to OSS (assuming it will work outside Meta)
  2. Configure Meta's OSS publishing tools to deliver the PR's version of the file to OSS while keeping the internal one as-is

OSS-only stub so that selectors referencing antlir//antlir/distro:build-for-distro
don't break OSS builds. The constraint is never set in OSS, so this never matches.
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@ben-- has updated the pull request. You must reimport the pull request before landing.

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.

3 participants