chore: document local cli build (#40227)

This commit is contained in:
David Newell
2025-10-23 16:47:02 +01:00
committed by GitHub
parent 515d0d25ea
commit 2bc71f2c18
2 changed files with 13 additions and 1 deletions

View File

@@ -18,3 +18,15 @@ cd cli && cargo publish
We manage publishing releases through [`cargo-dist`](https://github.com/axodotdev/cargo-dist)
We release semi-regularly, as new features are added. If a release breaks your CI or workflow, please open an issue on GitHub, and tag one or all of the crate authors
## Running a local build
From the `./cli` directory run `cargo install --path .` to build a new version
If you want to replace an existing installation of the CLI you will need to copy the generated target to override it:
```bash
cp ./target/release/posthog-cli "$(which posthog-cli)"
```
Tip: it can be useful to bump the version in `./cli/Cargo.toml` and run `posthog-cli --version` to ensure you're running your local version

View File

@@ -148,7 +148,7 @@ fn upload_to_s3(presigned_url: PresignedUrl, data: &[u8]) -> Result<()> {
}
}
Result::Err(e) => {
last_err = Some(anyhow!("Failed to upload chunk: {e}"));
last_err = Some(anyhow!("Failed to upload chunk: {e:?}"));
}
}
if attempt < 3 {