dprint-plugin-prettier icon indicating copy to clipboard operation
dprint-plugin-prettier copied to clipboard

Unsupported CPU architecture: x86_64 (linux-musl)

Open azzamsa opened this issue 2 years ago • 2 comments

Hi.

The plugin fails in the ubuntu-22.04 CI but works locally.

jobs:
  code_quality:
    name: Code quality
    runs-on: ubuntu-22.04
    steps:
      - name: Checkout source code
        uses: actions/checkout@v4

      - uses: taiki-e/install-action@dprint

      - name: Show version information
        shell: bash
        run: |
          dprint --version

      - name: Ensure `fmt` has been run
        run:  dprint check
Run dprint --version
dprint 0.41.0
2s

Run dprint check
  dprint check
  shell: /usr/bin/bash -e {0}
Compiling https://plugins.dprint.dev/markdown-0.16.2.wasm
Compiling https://plugins.dprint.dev/toml-0.5.4.wasm
Error resolving plugin https://plugins.dprint.dev/prettier-0.27.0.json: Unsupported CPU architecture: x86_64 (linux-musl)
Error: Process completed with exit code 12.

But it works locally.

Fedora Linux 38 (Workstation Edition)

🙊 dprint --version
dprint 0.41.0

azzamsa avatar Oct 20 '23 12:10 azzamsa

A plugin compatible with the linux-musl dprint is important from the point that the musl dprint is commonly installed by things that need to work across different linux distros and versions. The prettier plugin cannot apparently currently be used in such setups.

scop avatar Apr 13 '24 07:04 scop