Skip to content

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

Open
@lf-

Description

@lf-

I have naively tried to run the following build command to no avail (also its alias //:buck2):

$ target/debug/buck2 build //app/buck2:buck2-bin
File changed: gh_facebook_buck2//target/.rustc_info.json
File changed: gh_facebook_buck2//target/debug/.fingerprint/allocative-cef16fa715d174dd/test-lib-allocative
File changed: gh_facebook_buck2//target/debug/.fingerprint/allocative-badaafb409a20b7b/lib-allocative
7722 additional file change events
File changed: gh_facebook_buck2//target/debug/deps/rmetafyOEk7/lib.rmeta
Directory changed: gh_facebook_buck2//target/debug/deps/rmetafyOEk7/lib.rmeta
File changed: gh_facebook_buck2//target/debug/deps/libbuck2_event_log-415de39ced9b3985.rmeta
299 additional file change events
Build ID: 012ce0ac-956b-4ce5-8ccc-ab6cac26ecc4
Loading targets.   Remaining     0/246                                                                                                    536 dirs read, 1021 targets declared
Analyzing targets. Remaining     0/1                                                                                                      
Command: build.                                                                                                                                                                                               
Time elapsed: 2.4s
BUILD FAILED
Error running analysis for `gh_facebook_buck2//app/buck2:buck2-bin (prelude//platforms:default#200212f73efcd57d)`

Caused by:
    0: Error in configured node dependency, dependency chain follows (-> indicates depends on, ^ indicates same configuration as previous):
              gh_facebook_buck2//app/buck2:buck2-bin (prelude//platforms:default#200212f73efcd57d)
           -> gh_facebook_buck2//app/buck2_validation:buck2_validation (^)
           -> gh_facebook_buck2//gazebo/dupe:dupe (^)
           -> gh_facebook_buck2//gazebo/dupe_derive:dupe_derive (^)
           -> gh_facebook_buck2//gazebo/dupe_derive:_dupe_derive (^)
           -> gh_facebook_buck2_shims_meta//third-party/rust:syn (^)
       
    1: looking up unconfigured target node `gh_facebook_buck2_shims_meta//third-party/rust:syn`
    2: Error loading targets in package `gh_facebook_buck2_shims_meta//third-party/rust` for target `gh_facebook_buck2_shims_meta//third-party/rust:syn`
    3: package `gh_facebook_buck2_shims_meta//third-party/rust:` does not exist
           missing `BUCK` file (also missing alternatives `BUCK.v2`, `BUCK`)

It seems that there's some additional work to be done to get the OSS build to build buck2 with buck2?

The reason I want this is to be able to run the buck2 based build/lint pipeline (cc #943).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions