Skip to content

Commit f3a937f

Browse files
HavenDVclaude
andcommitted
fix: add autosdk CLI install to generate.sh
The generate.sh was missing the `dotnet tool install --global autosdk.cli --prerelease` line that all other SDKs have, causing CI to fail with "autosdk: command not found". Also added `rm -rf Generated` for clean regeneration, upgraded shebang to `#!/usr/bin/env bash`, and tightened error handling with `set -euo pipefail`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8927cdf commit f3a937f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/libs/Humanloop/generate.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
#!/bin/bash
2-
set -e
1+
#!/usr/bin/env bash
2+
set -euo pipefail
33

44
# Humanloop API does not publish a public OpenAPI spec.
55
# The spec is manually maintained in this directory based on the official SDKs and API docs.
66
# Source reference: https://github.com/humanloop/humanloop-node (Fern-generated TypeScript SDK)
77

8+
dotnet tool install --global autosdk.cli --prerelease
9+
rm -rf Generated
810
autosdk generate openapi.yaml \
911
--namespace tryAGI.Humanloop \
1012
--clientClassName HumanloopClient \

0 commit comments

Comments
 (0)