Volume XXII, number 280Wednesday, October 7, 2026Latest message 50 minutes ago

The Git List

News and archive of git@vger.kernel.org, since April 2005

CARGO trouble appeared from 2.54.0 to 2.55.0

3 messages between Jul 5, 2026 and Jul 6, 2026, from Kurt Mielke, Ben Knoble, Junio C Hamano.

Plain Markdown or JSON for tools and agents.

Kurt MielkeJul 5, 2026, 00:21 UTC on lore
Hi
I had a clean alma10 and wanted the newest git BUT building fails:
make
....
     CC version.o
     AR libgit.a
     CARGO target/release/libgitcore.a
/bin/sh: line 1: cargo: command not found
make: *** [Makefile:3021: target/release/libgitcore.a] Error 127
I got 2.54.0 and it compiled just fine
I found out CARGO is rust related
Changing make command to
make NO_RUST=1
And I got my 2.55.0 version, but allow me to suggest it again is the default
II have no caommands in path beginning with the letters 'rus'
Thank you in advance
Kirt Mielke
Ben KnobleJul 5, 2026, 23:56 UTC in reply to Kurt Mielke on lore

Re: CARGO trouble appeared from 2.54.0 to 2.55.0

Show 20 quoted lines
> Le 4 juil. 2026 à 20:23, Kurt Mielke <scr@lyn.dk> a écrit :
> 
> Hi
> 
> 
> I had a clean alma10 and wanted the newest git BUT building fails:
> 
> make
> 
> ....
> 
>     CC version.o
>     AR libgit.a
>     CARGO target/release/libgitcore.a
> /bin/sh: line 1: cargo: command not found
> make: *** [Makefile:3021: target/release/libgitcore.a] Error 127
> 
> I got 2.54.0 and it compiled just fine
> 
> I found out CARGO is rust related
Git’s source code has included some optional Rust components for a few releases now. Rust is planned to be a requirement for 3.0 (IIUC), but I don’t have any recollection of the proposed timeline. [There was also some discussion of delaying the Rust mandate timeline for platforms which currently lack support?]
Show 5 quoted lines
> Changing make command to
> 
> make NO_RUST=1
> 
> And I got my 2.55.0 version, but allow me to suggest it again is the default
2.55 is the first version to flip the default to « build with Rust », but it remains optional as you’ve discovered. 
Show 5 quoted lines
> II have no caommands in path beginning with the letters 'rus'
> 
> Thank you in advance
> 
> Kirt Mielke
Searching the internet shows Alma has packages for Rust, which you should be able to install if you want to compile with the Rust components. 
Junio C HamanoJul 6, 2026, 14:13 UTC in reply to Ben Knoble on lore

Re* CARGO trouble appeared from 2.54.0 to 2.55.0

Ben Knoble <ben.knoble@gmail.com> writes:
Show 12 quoted lines
> Git’s source code has included some optional Rust components for
> a few releases now. Rust is planned to be a requirement for 3.0
> (IIUC), but I don’t have any recollection of the proposed
> timeline. [There was also some discussion of delaying the Rust
> mandate timeline for platforms which currently lack support?]
> ...
> 2.55 is the first version to flip the default to « build with Rust
> », but it remains optional as you’ve discovered.
> ...
> Searching the internet shows Alma has packages for Rust, which you
> should be able to install if you want to compile with the Rust
> components.

As you said above, what was reported is totally expected (I understand that 2.55 built properly for the OP with "make NO_RUST=NoThanks" set).

I do not know why nobody complained, but we have been carrying this incomplete sentence in the release notes forever X-<.

 Documentation/RelNotes/2.55.0.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git c/Documentation/RelNotes/2.55.0.adoc w/Documentation/RelNotes/2.55.0.adoc
index f5643534dc..696ad15c1e 100644
--- c/Documentation/RelNotes/2.55.0.adoc
+++ w/Documentation/RelNotes/2.55.0.adoc
@@ -85,8 +85,8 @@ Performance, Internal Implementation, Development Support etc.
  * Promisor remote handling has been refactored and fixed in
    preparation for auto-configuration of advertised remotes.
 
- * Rust support is enabled by default (but still allows opting out) in
-   some future version of Git.
+ * Rust support is enabled by default (but still allows opting out); in
+   some future version of Git, this will become mandatory.
 
  * Preparation of the xdiff/ codebase to work with Rust.
 

Back to recent threads

CARGO trouble appeared from 2.54.0 to 2.55.0 | The Git List