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

Cannot build testbed on Windows #54

Open
noahbald opened this issue Dec 31, 2023 · 2 comments
Open

Cannot build testbed on Windows #54

noahbald opened this issue Dec 31, 2023 · 2 comments

Comments

@noahbald
Copy link
Contributor

https://github.com/huggingface/llm-ls/blob/2a433cdf75dc0a225e95753256f2601161bc6747/crates/testbed/src/main.rs#L346C24-L346C24

The linked statement results in the following error.

error[E0425]: cannot find function `symlink` in module `fs`
   --> crates\testbed\src\main.rs:346:21
    |
346 |                 fs::symlink(link_target, dst_path.clone()).await?;
    |                     ^^^^^^^ not found in `fs`
    |
note: found an item that was configured out
   --> C:\Users\noahw\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.32.0\src\fs\mod.rs:114:9
    |
114 |     mod symlink;
    |         ^^^^^^^
note: found an item that was configured out
   --> C:\Users\noahw\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.32.0\src\fs\mod.rs:115:28
    |
115 |     pub use self::symlink::symlink;
    |

This is available in unix only
https://docs.rs/tokio/latest/tokio/fs/fn.symlink.html

@McPatate
Copy link
Member

McPatate commented Jan 2, 2024

Ah, will have to use #[cfg()] macros & symlink_dir / symlink_file

@dsisnero
Copy link

same issue

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

No branches or pull requests

3 participants