Skip to content

stone-prover build script is unhelpful when Docker is misconfigured #24

@notlesh

Description

@notlesh

If Docker is uninstalled/misconfigured, the output is rather unhelpful:

thread 'main' panicked at stone-prover/build.rs:94:40:
Failed to build Stone Prover using Dockerfile: CommandFailed(Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "DEPRECATED: The legacy builder is deprecated and will be removed in a future release.\n            Install the buildx component to build images with BuildKit:\n            https://docs.docker.com/go/buildx/\n\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/stephen/dev/msl/starkware/madara-prover-api/stone-prover/dependencies/stone-prover/Dockerfile: no such file or directory\n" })

I'm not sure what to suggest at this point, in part because I'm not very experienced with Docker. I may also be off the beaten path by trying to use pacman (Arch Linux package manager) to set it up.

Ideas:

  • Better suggestions in README.md for setting this up and/or its requirements
  • Pre-flight check to see if requirements are met and provide more specific diagnostic output
  • Improve formatting of error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions