From 1d6ae62b075660394856e42cd740c99c7d1f922e Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 16 Oct 2024 15:40:04 -0400 Subject: [PATCH] Update to cargo-dist v0.23.0 --- .github/workflows/release.yml | 2 +- Cargo.toml | 2 +- docs/getting-started/installation.md | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e05a6b26e6d..6ff89163f533 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,7 @@ jobs: # we specify bash to get pipefail; it guards against the `curl` command # failing. otherwise `sh` won't catch that `curl` returned non-0 shell: bash - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.22.1/cargo-dist-installer.sh | sh" + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.23.0/cargo-dist-installer.sh | sh" - name: Cache cargo-dist uses: actions/upload-artifact@v4 with: diff --git a/Cargo.toml b/Cargo.toml index bbee54b2f169..3046f7f8e1e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -280,7 +280,7 @@ inherits = "release" # Config for 'cargo dist' [workspace.metadata.dist] # The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.22.1" +cargo-dist-version = "0.23.0" # CI backends to support ci = "github" # The installers to generate for each app diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index eabe5df28fe8..cc354a12e07b 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -83,6 +83,15 @@ options can be passed directly to the install script. For example, to see the av $ curl -LsSf https://astral.sh/uv/install.sh | sh -s -- --help ``` +In ephemeral environments like CI, use `UV_UNMANAGED_INSTALL` to install uv to a specific path while +preventing the installer from modifying shell profiles or environment variables: + +```console +$ curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="/custom/path" sh +``` + +The use of `UV_UNMANAGED_INSTALL` will also disable self-updates (via `uv self update`). + ### PyPI For convenience, uv is published to [PyPI](https://pypi.org/project/uv/).