facebook/infer

Provides a snippet that works correctly when installing from binaries.

Opened this issue · 0 comments

There is an error in the bash script when installing from binaries. The filename of the binary file is different from the current one.
Provide a snippet that works correctly.

Getting started with Infer/Get Infer

  • current script
    VERSION=0.XX.Y; \
    curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux64-v$VERSION.tar.xz" \
    | sudo tar -C /opt -xJ && \
    sudo ln -s "/opt/infer-linux64-v$VERSION/bin/infer" /usr/local/bin/infer
  • proposal script
    INFER_INST_VERSION=1.2.0; \
    INFER_INST_OS_ARCH=linux-x86_64; \
    curl -sSL "https://github.com/facebook/infer/releases/download/v$INFER_INST_VERSION/infer-$INFER_INST_OS_ARCH-v$INFER_INST_VERSION.tar.xz" \
    | sudo tar -C /opt -xJ && \
    sudo ln -s "/opt/infer-$INFER_INST_OS_ARCH-v$INFER_INST_VERSION/bin/infer" /usr/local/bin/infer
    infer --version

This script works correctly at Windows 11 WSL/Ubuntu and MX Linux 23.3


  • Please make sure your issue is not addressed in the FAQ.

Please include the following information:

  • The version of infer from infer --version.
    • Infer version v1.2.0 (This is after installing using the script proposed this time.)
  • Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc.
    • MX-23.3_x64 Libretto May 19 2024 and Windows 11 WSL/Ubuntu
  • Which command you ran, for example infer -- make.
    • n/a
  • The full output in a paste, for instance a gist.
    • xz: (stdin): File format not recognized etc..
  • If possible, a minimal example to reproduce your problem (for instance, some code where
    infer reports incorrectly, together with the way you run infer to reproduce the incorrect
    report).
    • running current script.

I'm sorry for this text only, not in the form of a pull request.

Thank you for creating such wonderful software.