Update to `cargo-dist` v0.23.0 (#8270)

## Summary

Closes https://github.com/astral-sh/uv/issues/8242.
This commit is contained in:
Charlie Marsh 2024-10-16 13:25:03 -07:00 committed by GitHub
parent b851ced09e
commit cf7dbaa7a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 2 deletions

View File

@ -66,7 +66,7 @@ jobs:
# we specify bash to get pipefail; it guards against the `curl` command # we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0 # failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash 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 - name: Cache cargo-dist
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -280,7 +280,7 @@ inherits = "release"
# Config for 'cargo dist' # Config for 'cargo dist'
[workspace.metadata.dist] [workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) # 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 backends to support
ci = "github" ci = "github"
# The installers to generate for each app # The installers to generate for each app

View File

@ -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 $ 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 ### PyPI
For convenience, uv is published to [PyPI](https://pypi.org/project/uv/). For convenience, uv is published to [PyPI](https://pypi.org/project/uv/).