mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore: document local cli build (#40227)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user