Page MenuHomeFreeBSD

cargo.mk: move cargo-crates-generate-lockfile to depend on patch
Needs ReviewPublic

Authored by vishwin on Mar 22 2023, 1:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 7:32 PM
Unknown Object (File)
Tue, Apr 16, 4:22 PM
Unknown Object (File)
Mon, Apr 15, 3:54 AM
Unknown Object (File)
Feb 18 2024, 1:22 AM
Unknown Object (File)
Dec 23 2023, 1:51 AM
Unknown Object (File)
Dec 13 2023, 3:55 PM
Unknown Object (File)
Jul 7 2023, 9:42 AM
Unknown Object (File)
Jun 20 2023, 5:17 PM
Subscribers

Details

Reviewers
None
Group Reviewers
rust
portmgr
Summary

Lockfiles, and thus crates lists, should be generated after patching completes, which may include Cargo.toml. Also accounts for ${EXTRA_PATCHES} passed specifically for this target to, for example, make additional packages visible (as only the root Cargo.toml is read)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 50521
Build 47412: arc lint + arc unit

Event Timeline

It's using extract because extract is the bare minimum dependency where generate-lockfile could possibly work. Sometimes you don't want the patches applied. If we change it to patch then we have to manually move the patches out the way first in that case. With extract people can just run make patch cargo-crates when they need the patches applied first.

However this isn't super important, so feel free to commit it anyway.

Using extract also means cargo-crates-merge is broken for ports with patches.