Skip to content

(Platform: WSL 2) "error: No such file or directory (os error 2)" during cargo publish #8439

@Cokemonkey11

Description

@Cokemonkey11

Problem

cargo publish yields error: No such file or directory (os error 2) without any further diagnostics.

Steps

Unclear. On my machine:

chillup $ cargo clean
chillup $ cargo build && cargo build --release
(snip)
chillup $ cargo publish -vvv --no-verify
    Updating crates.io index
   Packaging chillup v0.3.0 (/mnt/c/Users/Cokem/workspace/chillup)
   Archiving .cargo_vcs_info.json
   Archiving .gitignore
   Archiving Cargo.lock
   Archiving Cargo.toml
   Archiving Cargo.toml.orig
   Archiving README.md
   Archiving src/main.rs
   Uploading chillup v0.3.0 (/mnt/c/Users/Cokem/workspace/chillup)
error: No such file or directory (os error 2)

Possible Solution(s)
n/a - need better diags

Notes

Output of cargo version:

cargo 1.44.1 (88ba85757 2020-06-11)

rustc 1.44.1 (c7087fe00 2020-06-17)

wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Running         2
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

Note: This package already exists - I expect publish to update it.

Note: I have successfully published on WSL with this machine already, but this is my first time trying since upgrading to WSL 2.

Note: I generated a new crates.io auth key as a guess for the issue, which did not solve the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-filesystemArea: issues with filesystemsC-bugCategory: bugO-windowsOS: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions