Skip to content

Unable to unpack v3.0.0 Linux aarch64 Release artifact DSC-3.0.0-aarch64-linux.tar.gz #687

Closed
@vrimkus

Description

@vrimkus

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

this appears to be similar to #443
But in the v3.0.0 Release, the artifact DSC-3.0.0-aarch64-linux.tar.gz does not seem to be gzip or tar format.

replacing the artifact with the earlier release DSC-3.0.0-preview.10-aarch64-unknown-linux-musl.tar.gz
works as expected, and actually appears to be the last Release artifact for aarch64-linux to be valid, (v3.0.0-preview.11, v3.0.0-preview.12, and v3.0.0-rc.1 have the same issue)

Steps to reproduce

  1. Download DSC-3.0.0-aarch64-linux.tar.gz:
    curl -sL -o "/tmp/DSC-3.0.0-aarch64-linux.tar.gz" "https://github.com/PowerShell/DSC/releases/download/v3.0.0/DSC-3.0.0-aarch64-linux.tar.gz"
  2. ensure the filehash: (Get-FileHash /tmp/DSC-3.0.0-aarch64-linux.tar.gz).Hash
E9F739AF8B0BC75C719D075804BE28090078814E6F813D6D864163A758958FC3
  1. ensure the desired target directory exists, e.g. /opt/microsoft/dsc/3
  2. Attempt to extract with tar -xzf /tmp/DSC-3.0.0-aarch64-linux.tar.gz -C /opt/microsoft/dsc/3
# gzip: stdin: not in gzip format
  1. Rename to .tar
  2. Attempt to extract with tar -xvf /tmp/DSC-3.0.0-aarch64-linux.tar -C /opt/microsoft/dsc/3
# tar: This does not look like a tar archive

Expected behavior

the artifact can be successfully unpacked.

Replacing the artifact with [DSC-3.0.0-preview.10-aarch64-unknown-linux-musl.tar.gz
](https://github.com/PowerShell/DSC/releases/download/v3.0.0-preview.10/DSC-3.0.0-preview.10-aarch64-unknown-linux-musl.tar.gz), and using the reproduction steps 1-2, results in unpacked files.

Actual behavior

# gzip: stdin: not in gzip format
# tar: This does not look like a tar archive

Error details

N/A

Environment data

N/A

Version

3.0.0

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions