Created
August 2, 2023 16:14
-
-
Save booniepepper/0e197ea5b3c2a297338115f7eee4bb27 to your computer and use it in GitHub Desktop.
openfga/sdk-generator weird failures when building early version of Java SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make build-client-java | |
make build-client sdk_language=java tmpdir=/var/folders/_d/3x013d_12h91n1nw93f18tp00000gp/T//tmp.qJciG | |
cat: ./clients/fga-dotnet-sdk/VERSION.txt: No such file or directory | |
mkdir -p "/Users/justin.hill/workplace/sdk-generator-two/docs/openapi/" "/Users/justin.hill/workplace/sdk-generator-two/clients/" | |
cat: ./clients/fga-dotnet-sdk/VERSION.txt: No such file or directory | |
mkdir -p "/Users/justin.hill/workplace/sdk-generator-two/docs/openapi" | |
cat: ./clients/fga-dotnet-sdk/VERSION.txt: No such file or directory | |
curl "https://raw.githubusercontent.com/openfga/api/main/docs/openapiv2/apidocs.swagger.json" \ | |
-o "/Users/justin.hill/workplace/sdk-generator-two/docs/openapi/openfga.openapiv2.raw.json" | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 63073 100 63073 0 0 247k 0 --:--:-- --:--:-- --:--:-- 253k | |
cat "/Users/justin.hill/workplace/sdk-generator-two/docs/openapi/openfga.openapiv2.raw.json" | \ | |
docker run --rm -i stedolan/jq \ | |
'(.. | .tags? | select(.)) |= ["OpenFga"] | (.tags? | select(.)) |= [{"name":"OpenFga"}] | del(.definitions.ReadTuplesParams, .definitions.ReadTuplesResponse, .paths."/stores/{store_id}/read-tuples", .definitions.StreamedListObjectsRequest, .definitions.StreamedListObjectsResponse, .paths."/stores/{store_id}/streamed-list-objects")' > \ | |
/Users/justin.hill/workplace/sdk-generator-two/docs/openapi/openfga.openapiv2.json | |
cat: ./clients/fga-dotnet-sdk/VERSION.txt: No such file or directory | |
sed -i -e 's/v1.//g' /Users/justin.hill/workplace/sdk-generator-two/docs/openapi/openfga.openapiv2.json | |
SDK_LANGUAGE="java" TMP_DIR="/var/folders/_d/3x013d_12h91n1nw93f18tp00000gp/T//tmp.qJciG" LIBRARY_TEMPLATE="" \ | |
./scripts/build_client.sh | |
cat: ./clients/fga-dotnet-sdk/VERSION.txt: No such file or directory | |
cat: ./config/clients/java/generator.txt: No such file or directory | |
[error] The spec file is not found: /docs/openapi/openfga.openapiv2.json | |
[error] Check the path of the OpenAPI spec and try again. | |
make[1]: *** [build-client] Error 1 | |
make: *** [build-client-java] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment