Skip to content

Cargo has different version commit hashes per platform #10547

Closed
@abrisco

Description

@abrisco

Problem

In 1.60.0 I came across an issue where cargo version showed an unexpected difference on linux platforms in comparison to macos and windows.

Running on linux, I get:

cargo version
cargo 1.60.0 (d1fd9fe 2022-03-01)

Where as running on macos, i get:

cargo version
cargo 1.60.0 (d1fd9fe2c 2022-03-01)

Note the slight difference in the commit hash (d1fd9fe vs d1fd9fe2c). Linux is shorter than the other platforms by two characters. It would be ideal if these matched on all platforms, particularly since the full commit of each binary was not different.

Steps

  1. Get a windows or macos host
  2. Get a linux host or container
  3. Install Cargo 1.60.0 using rustup
  4. run cargo version in each environment

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.60.0 (d1fd9fe 2022-03-01)
release: 1.60.0
commit-hash: d1fd9fe2c40a1a56af9132b5c92ab963ac7ae422
commit-date: 2022-03-01
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1m)
os: CentOS 8.0.0 [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions