Skip to content

Extension doesn't install on Alpine Linux #2166

@antoinemartin

Description

@antoinemartin

Extension Version

v2.37.6

VS Code Version

Version: 1.107.1
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

Operating System

Linux AMG16 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 Linux

Terraform Version

Terraform v1.11.1 on linux_amd64

Steps to Reproduce

On Visual studio Code, when running on Alpine via a devcontainer on in WSL2 and trying to install the extension, we get a NotSigned error.

Error while installing the extension hashicorp.terraform Signature verification failed with 'NotSigned'

Expected Behavior

The extension should be installed as it is when the dev container or the WSL2 distribution is Archlinux, for instance.

Actual Behavior

we get a NotSigned error.

Error while installing the extension hashicorp.terraform Signature verification failed with 'NotSigned'

Terraform Configuration

Not relevant

Project Structure

Not relevant

Gist

No response

Anything Else?

The problem occurs is because on Alpine, vscode expects a target platform of alpine-x64 or alpine-arm64, probably because of the peculiar libc used, musl. As it is not provided, vscode falls back to a universal 2.19.0 version that is unsigned.

I'm not sure this is enough, but it may be sufficient to add the appropriate target platforms on the deployment matrix in:

matrix:
include:
- vsce_target: web
ls_target: web_noop
npm_config_arch: x64
- vsce_target: win32-x64
ls_target: windows_amd64
npm_config_arch: x64
- vsce_target: win32-arm64
ls_target: windows_arm64
npm_config_arch: arm
- vsce_target: linux-x64
ls_target: linux_amd64
npm_config_arch: x64
- vsce_target: linux-arm64
ls_target: linux_arm64
npm_config_arch: arm64
- vsce_target: linux-armhf
ls_target: linux_arm
npm_config_arch: arm
- vsce_target: darwin-x64
ls_target: darwin_amd64
npm_config_arch: x64
- vsce_target: darwin-arm64
ls_target: darwin_arm64
npm_config_arch: arm64

By adding:

          - vsce_target: alpine-x64
            ls_target: linux_amd64
            npm_config_arch: x64
          - vsce_target: alpine-arm64
            ls_target: linux_arm64
            npm_config_arch: arm64

Workarounds

Download the linux-x64 VSIX file and install locally. Because the binary terraform-ls is statically linked, it works.

References

microsoft/vsmarketplace#1615

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions