Skip to content

Releases: facebook/buck2

latest

13 Apr 15:18

Choose a tag to compare

latest Pre-release
Pre-release
Delete dead cells code

Summary: Missed it in D87300266

Reviewed By: get9

Differential Revision: D87717943

fbshipit-source-id: ebbf1affc958c2f77fd1fcc9396364315b80897b

2025-11-15

15 Nov 03:41

Choose a tag to compare

2025-11-15 Pre-release
Pre-release
Make all swift anon targets content based hashed

Summary:
TSIA

For the anon targets, we could not use `get_uses_experimental_content_based_path_hashing(ctx)` to determine whether we enable content based paths to them (as demonstrated in D86439116)

The reason is that the current setup of rolling out the feature is on a per app basis by adding a modifier to the app's target platform. The issue that brings is that any dependency that is built against the execution platform won't get that information, causing them to still have content based paths disabled. Then, when come to anon targets, if target A and target B both depends on anon target X, if A has content based path enabled and B has it disabled, this would cause an inconsistent state for target X, which leads to a duplicate entry in modulemap.json (https://www.internalfb.com/intern/diffing/?paste_number=2028864153), and hence causing build failures.

The solution, as described by the updated rollout plan: https://docs.google.com/document/d/1tS5CUQ8Xdpx6-hbsUx6NoGXd4VpuZu7FeXtXfHVGoRo/edit?tab=t.0, is that we will be a bit more aggressive in our rollout strategy and just enable content based path by default to the targets that are causing issues.

#buildall-fbobjc

Reviewed By: benb

Differential Revision: D86690264

fbshipit-source-id: 3c976288fee84cc24cbbee6b2067badb9a65825a

2025-11-01

01 Nov 00:12

Choose a tag to compare

2025-11-01 Pre-release
Pre-release
Fix incompatible target blocking generation

Summary:
This command `fbpython arvr/tools/buck/vsgo --vs2022 --no-open --mode_files arvr/apps/hsr/mode/vsgo_dev --generated_folder=C:\\open\\generated_projects //arvr/projects/hsr/...  //arvr/apps/hsr/demo/...  //arvr/apps/hsr/example/...  //arvr/apps/hsr/holodeck/...` is blocking hsr stable because a newly introduced incompatible target blocked the generation.

Properly handle this in vsgo

Reviewed By: autozimu

Differential Revision: D85915868

fbshipit-source-id: f5b5bb7494348fa0bc87c6d44eddaeb387db0c04

2025-10-15

15 Oct 00:51

Choose a tag to compare

2025-10-15 Pre-release
Pre-release
Add tags and cli args to CommandStart

Summary: Want to add tags to know if memory-tracker-enabled is set for lost builds. CLI args just nice to have, mostly for the UI, but is easy to add at the same time.

Reviewed By: JakobDegen

Differential Revision: D84556257

fbshipit-source-id: 55a5959097da7b6516c905066d98942f58914e5a

2025-10-01

01 Oct 00:23

Choose a tag to compare

2025-10-01 Pre-release
Pre-release
Apply race/asan flags when filter source files

Summary: Bug repot: https://fb.workplace.com/groups/codegophers/permalink/29592458917042675/

Reviewed By: RollerMatic

Differential Revision: D83609821

fbshipit-source-id: 9c11ea46ae1722ef1aafc439fe0d922fa1d42dd8

2025-09-15

15 Sep 07:56

Choose a tag to compare

2025-09-15 Pre-release
Pre-release
Linkers: correctly pass flags for $(ldflags-shared)

Summary: Apple platforms required a set of linker flags to be always present, so ensure `$(ldflags-shared)` macro that can be used in `cxx_genrule()` contains them.

Reviewed By: rmaz

Differential Revision: D82305068

fbshipit-source-id: d74067717971935fde6ace39edb3bd1f052e5686

2025-09-01

01 Sep 02:56

Choose a tag to compare

2025-09-01 Pre-release
Pre-release
prelude/go: "tansition" typo fix (#1091)

Summary: Pull Request resolved: https://github.com/facebook/buck2/pull/1091

Reviewed By: JakobDegen

Differential Revision: D81271184

fbshipit-source-id: a06cbda4b17bfc787a132d0229752e9aedefa95a

2025-08-15

15 Aug 01:53

Choose a tag to compare

2025-08-15 Pre-release
Pre-release
Allow clippy::uninlined_format_args

Summary:
This lint is failing buck2-oss jobs on revisions that used to pass, I can repro it with codesync but not directly in the repo, despite the fact that codesync does not modify any relevant code.

It's unclear to me how a lint could be flaky, presumably it's not the lint itself, but in any case this doesn't seem useful and it's disabled elsewhere in the repo.

Reviewed By: Will-MingLun-Li

Differential Revision: D80303763

fbshipit-source-id: 23f8b83422bacd8efca2953839ab827c5114ae4e

2025-08-01

01 Aug 07:19

Choose a tag to compare

2025-08-01 Pre-release
Pre-release
Make KIC default

Summary:
### Context
We are integrating the Kotlin Incremental Compiler (KSIC) into Buck to enable incremental compilation of Kotlin source files. This aims to enhance build speed by recompiling only modified source files within a target, rather than rebuilding the entire target.

### This diff
After testing on IG and WA, KIC will be the default option for all Kotlin targets.

*Note: This change will be announced by a public post before landing.*

Reviewed By: IanChilds

Differential Revision: D79264690

fbshipit-source-id: 44d4b0fd7db301ff80f96f08109873e6e1acf433

2025-07-15

15 Jul 00:39

Choose a tag to compare

2025-07-15 Pre-release
Pre-release
file watcher: Make a watchman test more flexible

Summary: Test is flakey. Idk what's going on in watchman

Reviewed By: scottcao

Differential Revision: D78302620

fbshipit-source-id: 6db777df93c8097257606137830209f6263ffc29