Summary: | Mk/Scripts/cargo-crates.awk: [[patch]] in Cargo.lock causes lossy output | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jan Beich <jbeich> | ||||
Component: | Ports Framework | Assignee: | FreeBSD Rust Team <rust> | ||||
Status: | New --- | ||||||
Severity: | Affects Only Me | CC: | ports-bugs | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Jan Beich
2023-04-02 18:11:11 UTC
Created attachment 242442 [details]
0001-cargo-crates.awk-any-new-section-terminates-the-curr.patch
Can you test if this breaks anything?
Comment on attachment 242442 [details]
0001-cargo-crates.awk-any-new-section-terminates-the-curr.patch
Coming back to this I don't think it's reasonable to support invalid Cargo.lock files. I don't think this is a regular occurrence anyway.
A proper solution would need a rewrite of cargo-crates.awk with a TOML parser anyway and not what I proposed here.
|