[Win] instead of a valid type annotation. Perhaps you meant `"AppleBundleDestination"`?
- Dominant language
- Rust
- Stars
- 4.4k
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
Description
I am not able to make BUCK2 run on my Windows computer. Did anyone has a similar issue before?
### Steps
1. Installed buck2 following the steps https://buck2.build/docs/about/getting_started/
2. Initialized repository with `buck2 init --git`. This cloned the prelude repo.
3. Created `toolchains/BUCK` With the content specified in the tutorial. My repo has only Python code.
4. Called `buck2 run //librarian:librarian`
### Issue
Calling:
```
buck2 run //librarian:librarian
```
Throws:
```
From `load` at implicit location
Caused by:
0: From `load` at prelude/prelude.bzl:8:6-29
1: From `load` at prelude/native.bzl:15:6-45
2: From `load` at prelude/apple/apple_macro_layer.bzl:8:6-50
3: From `load` at prelude/apple/user/apple_ipa_package.bzl:9:6-52
4: Error evaluating module: `prelude//apple/apple_bundle_destination.bzl`
5: error: Found `enum("resources", "frameworks", "executables", "plugins", "xpcservices", "metadata", "watchapp", "headers", "modules", "quicklook", "bundleroot", "loginitems", "appclips", "extensionkit_extensions")` instead of a valid type annotation. Perhaps you meant `"AppleBundleDestination"`?
--> prelude/apple/apple_bundle_destination.bzl:118:55
|
118 | def bundle_relative_path_for_destination(destination: AppleBundleDestination, sdk_name: str, extension: str, versioned_macos_bundle: bool) -> str:
| ^^^^^^^^^^^^^^^^^^^^^^
|
```
### Other info:
* OS windows
* rustup version nightly-2024-07-21
* buck2 version buck2 0ec71b43bfc49dde260e58330ec789fe8fd7746e023e6cf3643a5a256d20b899
* buck2-prelude hash 70dda4804d5eb72bff982c72691d89cab414413b
[Note] I also tried with the hello_world example in the getting_started tutorial, and I get the same error
Contributor guide
Assessment
This issue has not been assessed yet.