Skip to content

Impossible to publish: failed to prepare local package for uploading #11522

Closed
@contactomorph

Description

@contactomorph

Problem

When trying to publish my crate:

PS C:\repos\tensorism> cargo publish -vv
    Updating crates.io index
   Packaging tensorism v0.1.0 (C:\repos\tensorism)
   Archiving
error: failed to prepare local package for uploading

Caused by:
  failed to open for archiving: `C:\repos\tensorism`

Caused by:
  Access is denied. (os error 5)

Notes

I tried to publish it from a friend's machine, suspecting the problem was related to something about my local environment but I got exactly the same error.

Version

cargo 1.67.0-nightly (f6e737b1e 2022-12-02)
release: 1.67.0-nightly
commit-hash: f6e737b1e3386adb89333bf06a01f68a91ac5306
commit-date: 2022-12-02
host: x86_64-pc-windows-msvc
libgit2: 1.5.0 (sys:0.15.0 vendored)
libcurl: 7.86.0-DEV (sys:0.4.59+curl-7.86.0 vendored ssl:Schannel)
os: Windows 10.0.19045 (Windows 10 Pro) [64-bit]

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Error and warning messages generated by Cargo itself.C-bugCategory: bugCommand-packageE-easyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions