Skip to content

fix: incorrect platform used on arm64 Linux - #145

Merged
Connor Peet (connor4312) merged 1 commit into
mainfrom
fix/wrong-binary-platform
May 4, 2022
Merged

Connor Peet (connor4312) merged 1 commit into
mainfrom
fix/wrong-binary-platform

Conversation

@connor4312

Copy link
Copy Markdown
Member

We previously duplicated the "architecture" in the "platform" field.
This PR unifies that into the single "platform" field (which was already
exposed by consumer to specify the architecture for some things) which
resolves the issue.

Also pulls in vitest to add tests that the download is successful on
all platforms.

Fixes #141

We previously duplicated the "architecture" in the "platform" field.
This PR unifies that into the single "platform" field (which was already
exposed by consumer to specify the architecture for some things) which
resolves the issue.

Also pulls in vitest to add tests that the download is successful on
all platforms.
Comment thread lib/download.ts
}

await spawnDecompressorChild('tar', ['-xzf', '-', '-C', extractDir], stream);
await spawnDecompressorChild('tar', ['-xzf', '-', '--strip-components=1', '-C', extractDir], stream);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just avoids needing to check and special case the nested directory (e.g. VSCode-linux-arm64, which is different for all platforms.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runTest uses incorrect platform x64 on arm64

2 participants