Skip to content

Conversation

@thoughtpolice
Copy link
Contributor

I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

@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 28, 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.)

@thoughtpolice
Copy link
Contributor Author

thoughtpolice commented May 28, 2025

In the interests of security (i.e. randomly committing executables in the wake of lzma-gate):

austin@GANON:~/src/buck2.jj$ sha256sum \
  bootstrap/*.exe \
  <(curl -Lso - https://github.com/facebookincubator/reindeer/raw/refs/heads/main/reindeer.exe)
62d84e85c993c6776ade2d45f511001213b7646fb7a163e8e7c1089a572728c6  bootstrap/buck2.exe
62d84e85c993c6776ade2d45f511001213b7646fb7a163e8e7c1089a572728c6  bootstrap/reindeer.exe
62d84e85c993c6776ade2d45f511001213b7646fb7a163e8e7c1089a572728c6  bootstrap/rust-project.exe
62d84e85c993c6776ade2d45f511001213b7646fb7a163e8e7c1089a572728c6  /dev/fd/63

Which was committed upstream by a Meta employee in facebookincubator/reindeer@f052264.

@thoughtpolice thoughtpolice force-pushed the aseipp/push-ztorynssvzpz branch 9 times, most recently from 9e74b7e to b3e370d Compare May 29, 2025 20:07
@thoughtpolice
Copy link
Contributor Author

I actually included the wrong shim :) The one from the reindeer repository is 13KB, an earlier build, while the one in https://github.com/zsol/dotslash/blob/windows-no-std-shim/windows_shim/dotslash_windows_shim-x86_64.exe from facebook/dotslash#46 actually is 4KB. Replaced.

Updated paranoia check:

austin@GANON:~/src/buck2.jj$ sha256sum bootstrap/*.exe <(curl -Lso - https://github.com/zsol/dotslash/raw/refs/heads/windows-no-std-shim/windows_shim/dotslash_windows_shim-x86_64.exe)
174387691274630e4b56b7146d164afcaf3e1d96733cd0e1979e3ad829b13721  bootstrap/buck2.exe
174387691274630e4b56b7146d164afcaf3e1d96733cd0e1979e3ad829b13721  bootstrap/reindeer.exe
174387691274630e4b56b7146d164afcaf3e1d96733cd0e1979e3ad829b13721  bootstrap/rust-project.exe
174387691274630e4b56b7146d164afcaf3e1d96733cd0e1979e3ad829b13721  /dev/fd/63

austin@GANON:~/src/buck2.jj$ wc -c bootstrap/*.exe
 4096 bootstrap/buck2.exe
 4096 bootstrap/reindeer.exe
 4096 bootstrap/rust-project.exe
12288 total

@thoughtpolice
Copy link
Contributor Author

By the way, once this is merged, all you have to do is:

$env:Path += ";$((Get-Item .).FullName)\bootstrap"

In any buck2 checkout and now buck2 and reindeer magically work with no extra fuss! Really happy with this.

@thoughtpolice thoughtpolice force-pushed the aseipp/push-ztorynssvzpz branch 3 times, most recently from 1305db9 to d67fa69 Compare May 30, 2025 03:59
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for
a while now and it seems usable enough. They're already in use by
Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
@thoughtpolice thoughtpolice force-pushed the aseipp/push-ztorynssvzpz branch from d67fa69 to 54d99ae Compare May 30, 2025 05:00
@alexlian
Copy link
Contributor

Guessing this is also needing the same treatment @bigfootjon did for the other dotslash files. Checking with him.

@alexlian alexlian added buck2 development Related to the development of buck2 itself windows Microsoft Windows related labels May 30, 2025
@bigfootjon
Copy link
Member

Nah we're good here, discussed over chat but we don't really need to keep these files up to date

facebook-github-bot pushed a commit to facebook/mvfst that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebook/wangle that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebookincubator/fizz that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebook/folly that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebook/fb303 that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
@facebook-github-bot
Copy link
Contributor

@alexlian merged this pull request in 4e6c71a.

facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebook/fboss that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebookincubator/antlir that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
facebook-github-bot pushed a commit to facebook/ocamlrep that referenced this pull request May 30, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
@thoughtpolice thoughtpolice deleted the aseipp/push-ztorynssvzpz branch June 8, 2025 04:37
vmagro pushed a commit to facebookincubator/antlir that referenced this pull request Sep 2, 2025
Summary:
I've been using the WIP 4kb dotslash shim (from DotSlash PR 46) for a while now and it seems usable enough. They're already in use by Reindeer, too. Let's add these to make Windows bootstraps a bit easier.

X-link: facebook/buck2#970

Reviewed By: bigfootjon

Differential Revision: D75533918

Pulled By: alexlian

fbshipit-source-id: 1d7cccfe49cd1dcec009835c64f3df792997cf75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buck2 development Related to the development of buck2 itself CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged windows Microsoft Windows related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants