Skip to content

Invalid handle problem #10464

Closed
Closed
@leonardo-m

Description

@leonardo-m

Problem

I am not sure if it's really Cargo's fault, perhaps it's just an unknown problem in my system. Since few days I'm having a problem with Cargo on Windows. (I've used for years Cargo on the same system with no problems). If I try to create the project "test1" cargo gives me (the same error is generated if I run it as administrator):

error: Failed to create package test1 at ...\test1

Caused by:
  failed to open file ...\test1\.gitignore

Caused by:
  Error 6 - The handle is invalid 

Steps

cargo new test1

Possible Solution(s)

No response

Notes

I am using:

rustc 1.61.0-nightly (38a0b81b1 2022-03-06)

(rustc and rustup work well, I can update the Nightly compiler with no problems).

Version

cargo 1.61.0-nightly (3d6970d50 2022-02-28)
release: 1.61.0-nightly
commit-hash: 3d6970d50e30e797b8e26b2b9b1bdf92dc381f34
commit-date: 2022-02-28
host: x86_64-pc-windows-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:Schannel)
os: Windows 6.3.9600 (Windows 8.1) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bugO-windowsOS: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions