diff --git a/cli/CONTRIBUTING.md b/cli/CONTRIBUTING.md index 8c5723211d..1d22461de7 100644 --- a/cli/CONTRIBUTING.md +++ b/cli/CONTRIBUTING.md @@ -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 diff --git a/cli/src/api/symbol_sets.rs b/cli/src/api/symbol_sets.rs index 28d8365bac..e1bb898e09 100644 --- a/cli/src/api/symbol_sets.rs +++ b/cli/src/api/symbol_sets.rs @@ -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 {