Skip to content

get-pants.sh appears to install a broken pants launcher #23291

@bonauer-pf

Description

@bonauer-pf

Describe the bug
Installing pants via get-pants.sh like this:

$ curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
Downloading and installing the pants launcher ...
Installed the pants launcher from https://github.com/pantsbuild/scie-pants/releases/latest/download/scie-pants-linux-x86_64 to /home/bonauer/.local/bin/pants

Running `pants` in a Pants-enabled repo will use the version of Pants configured for that repo.
In a repo not yet Pants-enabled, it will prompt you to set up Pants for that repo.

leads to a broken pants installation. No matter which pants command is run, no matter in which folder, it immediately exits with:

$ pants
Killed
Downloading https://github.com/astral-sh/python-build-standalone/releases/download/20260414/cpython-3.14.4%2B20260414-x86_64-unknown-linux-gnu-install_only.tar.gz...
[00:00:00] [------------------------------] 0 B/0 B (eta: 0.0s)
thread 'main' panicked at src/main.rs:73:14:
Failed to write data to output: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Pants version
Doesn't matter, it doesn't get that far

OS
Ubuntu 22.04

Additional info
Minimal reproducer via Docker (installing the 2 dependencies documented in "Prerequisites", but it doesn't change anything):

docker run --rm -it ubuntu:22.04 /bin/bash -c "apt update && apt install -y curl python3-dev python3-distutils && curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash && /root/.local/bin/pants"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions