Skip to content

If dune tools install fails to install a tool it can break a user's environment #12818

@sroerick

Description

@sroerick

Expected Behavior

lsptools are installed

Actual Behavior

Installer fails on 'dune tools install ocamllsp, with message

File "dev-tools.locks/ocaml-lsp-server/ocaml-compiler.pkg", line 112, characters 3-76:
112 |    https://github.com/ocaml/ocaml/releases/download/5.4.0/ocaml-5.4.0.tar.gz)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: failed to extract 'download'
Reason: 'tar' failed with non-zero exit code '1' and output:
- tar: input compressed with gzip; use the -z option to decompress it.

I can no longer dune build, there seems to be no way to uninstall the tool, and the incomplete install has prevented all other progress on this repo.

Reproduction

I think this is derived from the OpenBSD version of tar? Other 'dune tools install' command fail in the same way

Specifications

  • Version of dune (output of dune --version):
    3.20.2
  • Version of ocaml (output of ocamlc --version):
  • Operating system (distribution and version):
  • OpenBSD 7.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions