You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I exec cargo publish command, casued detail error:
~ cargo publish
...
error: failed to verify package tarball
Caused by:
Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
Added: /Users/baoyachi/github/nyx/target/package/nyx-space-2.0.0-alpha/Cargo.lock
To proceed despite this, pass the `--no-verify` flag.
The nyx crates git ignore file add Cargo.lock. But Looking through the cargo source code, I found that there is a problem that the comparison of two values is not the same. The pkg_fingerprint in front does not have Cargo.lock digest, but the ws_fingerprint in the back contains Cargo.lock. But our current project git ignores the Cargo.lock file, is there a bug?
weihanglo
added
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
and removed
S-triage
Status: This issue is waiting on initial triage.
labels
May 31, 2023
This might be relevant to your use case #5707, in terms of providing an alternative path to Cargo.lock. However, It is about reading a lockfile not writing. For writing, I feel like it is less likely to be done since I haven't yet seen such a use case.
At this moment I think delete Cargo.lock after running those command could help maybe?
Going to close this as it's more like an issue should be solved on user side. If this is wrong, please tell us. Thank you!
Problem
when I exec
cargo publish
command, casued detail error:See detail:https://github.com/nyx-space/nyx/actions/runs/5080952451/jobs/9130014940
The
nyx
crates git ignore file add Cargo.lock. But Looking through the cargo source code, I found that there is a problem that the comparison of two values is not the same. Thepkg_fingerprint
in front does not have Cargo.lock digest, but thews_fingerprint
in the back contains Cargo.lock. But our current project git ignores the Cargo.lock file, is there a bug?https://github.com/rust-lang/cargo/blob/6956c04ec9/src/cargo/ops/cargo_package.rs#L842-L886
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
Tracing issue: baoyachi/shadow-rs#135
The text was updated successfully, but these errors were encountered: