Open ahmedprusevic opened 2 days ago
I'm not sure what's wrong here, but can you just try to run it as npx -y @openapitools/openapi-generator-cli ...
?
I've tried that as well (still failing) attaching screen shot for the reference
what does openapischema.js
do inside?
Just generates openapitools.json based on env copying file contents here
const output = {
$schema:
"./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
spaces: 2,
"generator-cli": {
version: "7.10.0",
generators: {
"v3.0": {
generatorName: "typescript-axios",
output: "openapi",
// eslint-disable-next-line no-undef
inputSpec: `${process.env.EXPO_PUBLIC_API_URL}/swagger/doc.json`,
},
},
},
}
const jsonString = JSON.stringify(output)
fs.writeFileSync("openapitools.json", jsonString)
double checked weather env variable is present in eas.json it is, since the same command passes for android build
Build/Submit details page URL
https://expo.dev/accounts/ahmedprusevic/projects/polaris/builds/b3057f65-7eb8-4b53-a245-55ba8cb894c2
Summary
Running post install hook on eas pipeline fails on ios, it is trying to run
openapi-generator-cli generate
command which is supposed to make http request to my server (not sure weather this makes any change) ,node version in nvm is v18.18.0 to match the one from the image
It is passing on android build so really wierd issue
Managed or bare?
Bare
Environment
Error output
No response
Reproducible demo or steps to reproduce from a blank project
try running
openapi-generator-cli generate
command that fetches schema from some server in eas-build-post-install hook on ios build