[Bug 286761] Uses/cargo: use --locked flag on install
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286761] Uses/cargo: use --locked flag on install"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 May 2025 07:24:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286761
Bug ID: 286761
Summary: Uses/cargo: use --locked flag on install
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr@FreeBSD.org
Reporter: corvink@FreeBSD.org
CC: ports-bugs@FreeBSD.org
Created attachment 260369
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260369&action=edit
0001-Uses-cargo-use-locked-flag-on-install.patch
By default cargo install ignores the lock file [1]. This will cause our
build to fail easily. First of all, when building with tools like
poudriere, network access will be disabled in install stage. Fetching a
new crate won't be possible. Additionally, a newer crate version might
be incompatible with our crate or even more worse unbuildable at all.
For that reason, force cargo to honor the lock file on install.
If this new behaviour breaks any build for some reasons, there's a new
variable, CARGO_INSTALL_NO_LOCKED, to disable it.
[1]
https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile
Sponsored by: Beckhoff Automation GmbH & Co. KG
--
You are receiving this mail because:
You are on the CC list for the bug.