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

Package files are randomly filled with \u{0} #10689

Closed
SkyfallWasTaken opened this issue May 21, 2022 · 5 comments
Closed

Package files are randomly filled with \u{0} #10689

SkyfallWasTaken opened this issue May 21, 2022 · 5 comments
Labels
C-bug Category: bug O-windows OS: Windows S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.

Comments

@SkyfallWasTaken
Copy link

SkyfallWasTaken commented May 21, 2022

Problem

What I expected to happen:
No errors
What actually happened:
Depedency files are randomly filled with \u{0}, causing the build to fail. The file cannot be opened in an editor due to invalid encoding.

This is what the error looks like:

error[E0601]: `main` function not found in crate `build_script_build`
 --> C:\Users\Mahad\.cargo\registry\src\github.com-1ecc6299db9ec823\crunchy-0.2.2\build.rs:1:6600
  |
1.| 
  | ^ consider adding a `main` function to `C:\Users\Mahad\.cargo\registry\src\github.com-1ecc6299db9ec823\crunchy-0.2.2\build.rs`

Steps

No response

Possible Solution(s)

No response

Notes

The bug is quite rare, and afaik there is no correlation between the two errors (the last one was for diff)

Version

cargo 1.60.0 (d1fd9fe2c 2022-03-01)
release: 1.60.0
commit-hash: d1fd9fe2c40a1a56af9132b5c92ab963ac7ae422
commit-date: 2022-03-01
host: x86_64-pc-windows-msvc
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 10.0.19044 (Windows 10 Pro) [64-bit]
@SkyfallWasTaken SkyfallWasTaken added the C-bug Category: bug label May 21, 2022
@gimbling-away
Copy link

Are you using Powershell by any chance?

@SkyfallWasTaken
Copy link
Author

Yep!

@ehuss ehuss added the S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. label May 24, 2022
@eminence
Copy link
Contributor

@gimbles can you say why you asked about PowerShell? I'm wondering if maybe you've seen something like this before, and PowerShell was somehow related

@weihanglo weihanglo added the O-windows OS: Windows label Mar 23, 2024
@weihanglo
Copy link
Member

This might be somehow related to #9455?

@weihanglo
Copy link
Member

This is a duplicate of #8242. Close in favor of that. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug O-windows OS: Windows S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.
Projects
None yet
Development

No branches or pull requests

5 participants