Skip to content

[windows] unable to remove the '.git' directory when cloning git source #1122

@mrcjkb

Description

@mrcjkb

the error is different but i can at least get a better sense of what's going on. continuing from above after removing both lux.lock and .lux:

pwsh$ lx build --only-deps
WARNING: Failed to fetch source for lua-say 0.1.0-1: unable to remove the '.git' directory:
Access is denied. (os error 5)                                                                                                                                              
⚠️ Falling back to searching for a .src.rock archive on https://luarocks.org/
Error: syncing dependencies with the project lockfile failed.
Use --no-lock to force a new build.                                                                                                                                         
                                                                                                                                                                            
failed to build lua-say: failed to fetch rock source: failed to download source rock: HTTP status client error (404 Not Found) for url (https://luarocks.org/lua-say-0.1.0-1.src.rock)                                                                                                                                                                  
                                                                                                                                                                            
Location:                                                                                                                                                                   
    D:\a\lux\lux\lux-cli\src\build.rs:24:18

should i make an issue about this? i think the deletion is failing because git sets its immutable files to read-only on windows. a similar thing happens on linux too

Originally posted by @corpserot in #1113 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions