Re: git: 0c8d8ebb7b3e - main - Tools/scripts: Add new script update_crates to replace CARGO_CRATES block

From: Tobias Kortkamp <tobik_at_freebsd.org>
Date: Tue, 16 Nov 2021 17:06:41 UTC
On Tue, Nov 16, 2021 at 05:22:00PM +0100, Rodrigo Osorio wrote:
> On 11/16/21 16:52, Tobias Kortkamp wrote:
> > On Mon, Nov 15, 2021 at 11:21:34AM +0100, Mateusz Piotrowski wrote:
> >>           make cargo-crates; make cargo-crates | portedit merge -i Makefile
> > This could just be 'make cargo-crates-merge' now.
> Hi Tobias,
> 
> Nice I miss this one, thanks for the heads up.
> Nevertheless sometimes I really appreciate to be able to create the 
> crates list
> in a sandbox - eg. inside a poudiere - then applying is to the git repo.

Hmm, that use case does not need update_crates or portedit: In
the jail make cargo-crates output can be captured and then copied
to the host as Makefile.crates which USES=cargo will load if it
exists.

On the host this could of course optionally be merged back to the
port with portedit merge -i or update_crates.