Skip to content
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

Normalize ndk_path for Windows #79

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

meteorcloudy
Copy link
Member

@meteorcloudy meteorcloudy commented Jul 30, 2024

Otherwise we may get this error when ANDROID_NDK_PATH=C:\android_ndk\r25b

ERROR: An error occurred during the fetch of repository 'rules_android_ndk~~android_ndk_repository_extension~androidndk':
   Traceback (most recent call last):
        File "C:/tmp/tq5vzwuk/external/rules_android_ndk~/rules.bzl", line 49, column 21, in _android_ndk_repository_impl
                _create_symlinks(ctx, ndk_path, clang_directory, sysroot_directory)
        File "C:/tmp/tq5vzwuk/external/rules_android_ndk~/rules.bzl", line 116, column 24, in _create_symlinks
                ctx.symlink(p, repo_relative_path)
Error in symlink: Cannot write outside of the repository directory for path C:/android_ndk/r25b/toolchains/llvm/prebuilt/windows-x86_64/AndroidVersion.txt

Otherwise we may get this error:
```
ERROR: An error occurred during the fetch of repository 'rules_android_ndk~~android_ndk_repository_extension~androidndk':
   Traceback (most recent call last):
        File "C:/tmp/tq5vzwuk/external/rules_android_ndk~/rules.bzl", line 49, column 21, in _android_ndk_repository_impl
                _create_symlinks(ctx, ndk_path, clang_directory, sysroot_directory)
        File "C:/tmp/tq5vzwuk/external/rules_android_ndk~/rules.bzl", line 116, column 24, in _create_symlinks
                ctx.symlink(p, repo_relative_path)
Error in symlink: Cannot write outside of the repository directory for path C:/android_ndk/r25b/toolchains/llvm/prebuilt/windows-x86_64/AndroidVersion.txt
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant