PRQL / prql

PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement

Home Page:https://prql-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Docker] the 'cargo' binary ... is not applicable to the '1.77.2-aarch64-unknown-linux-gnu' toolchain

richb-hanover opened this issue · comments

What happened?

I wanted to build the newest commit e82c88f on my M2 macMini (running macOS 14.4.1) in DOCKER. I pulled the version, then tried to run task build-all and got the following error:

vscode ➜ /workspaces/prql (main) $ task build-all
task: [build-all] cargo build --all-targets --all-features
error: the 'cargo' binary, normally provided by the 'cargo' component, is not applicable to the '1.77.2-aarch64-unknown-linux-gnu' toolchain
task: Failed to run task "build-all": exit status 1
vscode ➜ /workspaces/prql (main) $ 

I first noticed this when I ran task web:run-playground in Docker on the same M2 machine...

PRQL input

N/A

SQL output

N/A

Expected SQL output

N/A

MVCE confirmation

  • Minimal example
  • New issue

Anything else?

No response

Could you try rebuilding the container? I can't reproduce this. The toolchain version did change, so possibly there's a conflict with what cargo is pointing to (feel free to investigate that ofc, ideally we wouldn't need to rebuild the container each time the toolchain changes...)

That did the trick. I used Docker Desktop to remove all containers, volumes, images, then reopened VSCode and it rebuilt the container, then I could use web:run-playground, web:run-book, and web:run-website as expected.

NB: To keep it fresh in my mind, task build-all still fails (#4210) because I don't have enough free disk space. This is fine - I don't ever need to build-all, just the tasks above

OK great.

If this happens again, would be interesting whether the VS Code command "Dev Containers: Rebuild and Reopen in Container" fixes it, which is less drastic than wiping everything.