Skip to content

Wrong hash of debian-minimal-rootfs? #83

@giordano

Description

@giordano

https://github.com/staticfloat/Sandbox.jl/blob/ed87f079edb1cef60c32ad5fbfbcd38c70a1314a/Artifacts.toml#L17-L23

julia> using CodecZlib, Downloads, Tar

julia> tarball = Downloads.download("https://github.com/JuliaCI/rootfs-images/releases/download/v4.4/debian_minimal.x86_64.tar.gz");

julia> bytes2hex(open(io -> sha256(io), tarball))
"7e5f2625e6ca9a105430e0a505896184b503dfc3a7ce15916d2b8dca0391e65d"

julia> tar_gz = open(tarball);

julia> tar = GzipDecompressorStream(tar_gz);

julia> Tar.tree_hash(tar)
"97fd72e5d9f3d8902dca83ed3182c7b12a9ce446"

julia> close(tar)

julia> close(tar_gz)

julia> versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, haswell)

The sha256 checksum is the same, but the git tree hash is different

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions