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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions bootstrap/buck2
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env dotslash

{
"name": "buck2",
"platforms": {
"macos-aarch64": {
"size": 29114459,
"hash": "blake3",
"digest": "4ffe0fe712a9452999a4cc15d22f00f71349b66d399869ae24f7cb219f8db6fc",
"format": "zst",
"path": "buck2-aarch64-apple-darwin",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-aarch64-apple-darwin.zst"
}
]
},
"linux-aarch64": {
"size": 30289600,
"hash": "blake3",
"digest": "bbb4d04da8deca8a197bffd9cf60b6057e4765a32d01dd28d495f5571dbdc96b",
"format": "zst",
"path": "buck2-aarch64-unknown-linux-musl",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-aarch64-unknown-linux-musl.zst"
}
]
},
"macos-x86_64": {
"size": 30844254,
"hash": "blake3",
"digest": "16f91ed791032288475d4bbe9601994bcbdae07f6778000565f222af698e61d4",
"format": "zst",
"path": "buck2-x86_64-apple-darwin",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-x86_64-apple-darwin.zst"
}
]
},
"windows-x86_64": {
"size": 25998099,
"hash": "blake3",
"digest": "9820d6e6c44ad8374ba35b8dae65c39813ba280875677bbb87c377cd33938b38",
"format": "zst",
"path": "buck2-x86_64-pc-windows-msvc.exe",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-x86_64-pc-windows-msvc.exe.zst"
}
]
},
"linux-x86_64": {
"size": 31572599,
"hash": "blake3",
"digest": "1499fa841ba87adb5cceaf3b4680db1db79967a14470bd40a344788d03e75082",
"format": "zst",
"path": "buck2-x86_64-unknown-linux-musl",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/buck2-x86_64-unknown-linux-musl.zst"
}
]
}
}
}
Binary file added bootstrap/buck2.exe
Binary file not shown.
67 changes: 67 additions & 0 deletions bootstrap/reindeer
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env dotslash

{
"name": "reindeer",
"platforms": {
"macos-aarch64": {
"size": 6298978,
"hash": "blake3",
"digest": "c1d4200632a1db3f53663c147d9e9cb3e62137afcd09dd3b9bcf44f2e671a41f",
"format": "zst",
"path": "reindeer-aarch64-apple-darwin",
"providers": [
{
"url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-aarch64-apple-darwin.zst"
}
]
},
"linux-aarch64": {
"size": 6534825,
"hash": "blake3",
"digest": "5ddbd93c41fb6817bf70681be51ed4c84cea52f8ed2b6f26d49057994ace1ea2",
"format": "zst",
"path": "reindeer-aarch64-unknown-linux-musl",
"providers": [
{
"url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-aarch64-unknown-linux-musl.zst"
}
]
},
"macos-x86_64": {
"size": 6605675,
"hash": "blake3",
"digest": "bfc07e2ef45d3c57e30cbb54529b14677ebe064353568f0cb2adec4c65ccfcc8",
"format": "zst",
"path": "reindeer-x86_64-apple-darwin",
"providers": [
{
"url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-x86_64-apple-darwin.zst"
}
]
},
"windows-x86_64": {
"size": 6348931,
"hash": "blake3",
"digest": "08cd4da3a5ee5252f63feab5372f12dda4e839480239609e0a3f024e4dc4753c",
"format": "zst",
"path": "reindeer-x86_64-pc-windows-msvc.exe",
"providers": [
{
"url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-x86_64-pc-windows-msvc.exe.zst"
}
]
},
"linux-x86_64": {
"size": 6889412,
"hash": "blake3",
"digest": "e96324c0ee74bc972c2ffb6beb0f089eab9ec27891b870cd5aefb90b35686a84",
"format": "zst",
"path": "reindeer-x86_64-unknown-linux-musl",
"providers": [
{
"url": "https://github.com/facebookincubator/reindeer/releases/download/v2025.05.06.00/reindeer-x86_64-unknown-linux-musl.zst"
}
]
}
}
}
Binary file added bootstrap/reindeer.exe
Binary file not shown.
67 changes: 67 additions & 0 deletions bootstrap/rust-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env dotslash

{
"name": "rust-project",
"platforms": {
"macos-aarch64": {
"size": 1298055,
"hash": "blake3",
"digest": "6a7db2b2d4b4ad54e402df6b56830f96fd8e8cb6cb402c21608c42c5a9262267",
"format": "zst",
"path": "rust-project-aarch64-apple-darwin",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-aarch64-apple-darwin.zst"
}
]
},
"linux-aarch64": {
"size": 1433031,
"hash": "blake3",
"digest": "db990d92ee9132e1eff4518acff4688992d795420c539052bf5d894b948432fa",
"format": "zst",
"path": "rust-project-aarch64-unknown-linux-musl",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-aarch64-unknown-linux-musl.zst"
}
]
},
"macos-x86_64": {
"size": 1396577,
"hash": "blake3",
"digest": "fec40ca8ef112b73014aef3e79751e245b71c092f7bef7c54947ad7356878fcc",
"format": "zst",
"path": "rust-project-x86_64-apple-darwin",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-x86_64-apple-darwin.zst"
}
]
},
"windows-x86_64": {
"size": 1204449,
"hash": "blake3",
"digest": "5d5ea2faa7291b54a8389e4f7aab343565c59062c756dbe21e0416bddc610d55",
"format": "zst",
"path": "rust-project-x86_64-pc-windows-msvc.exe",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-x86_64-pc-windows-msvc.exe.zst"
}
]
},
"linux-x86_64": {
"size": 1542697,
"hash": "blake3",
"digest": "3219085df7b768be8c732f0343b3e1a19ccfcc2d84b92ffa02a00b2afcf57587",
"format": "zst",
"path": "rust-project-x86_64-unknown-linux-musl",
"providers": [
{
"url": "https://github.com/facebook/buck2/releases/download/2025-05-06/rust-project-x86_64-unknown-linux-musl.zst"
}
]
}
}
}
Binary file added bootstrap/rust-project.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion shim/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
# We currently expect end users to run reindeer vendor themselves
# so mark these things as to ignore
/third-party/rust/.cargo/
/third-party/rust/BUCK
/third-party/rust/BUCK.v2
/third-party/rust/vendor/
15 changes: 15 additions & 0 deletions shim/third-party/rust/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

fail("""----------------------------------------------------

You need to generate BUCK dependencies from Cargo.toml using reindeer!

Try this:

./bootstrap/reindeer --third-party-dir shim/third-party/rust buckify

See the following links for more information:

<https://buck2.build/docs/about/bootstrapping/>
<https://dotslash-cli.com>

----------------------------------------------------""")
2 changes: 1 addition & 1 deletion shim/third-party/rust/reindeer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bindeps = true

[buck]
# Name of the generated file.
file_name = "BUCK"
file_name = "BUCK.v2"

# Rules used for various kinds of targets.
rust_library = "cargo.rust_library"
Expand Down
Loading