bump-sh / cli

Bump.sh CLI - Deploy your OpenAPI & AsyncAPI documentations from your CI
https://bump.sh
MIT License
43 stars 3 forks source link

OAS schemas module not found #426

Open deepansha16 opened 1 year ago

deepansha16 commented 1 year ago

`deepanshachowdhary@Deepanshas-MacBook-Pro cli % bump diff https://github.com/wicrs/docs/blob/8e0e99de1db6fb9b3d04361b80652e4972ed727b/json/swagger-resolved.json https://github.com/wicrs/docs/blob/bcfa0c9125ff5808388bc7c12aba41f76d91c153/json/swagger-resolved.json Error: Cannot find module 'oas-schemas/schemas/v2.0/schema.json' Require stack:

I get the following error when I try to run bump.sh locally on my machine, I installed all the required packages, but I am not able to figure out where the error comes from. Is it a missing package on my side?

Polo2 commented 11 months ago

Hi @deepansha16 👋

First of all, sorry for the long delay for our answer, I hope this issue didn't blocked you too much.

Version 2.7.2 of bump-cli has now been released, do you still have such error with a fresh npm update -g to this version?

I also noticed that you'll need to provide URLs of raw JSON file of GitHub to process the diff:

instead of bump diff https://github.com/wicrs/docs/blob/8e0e99de1db6fb9b3d04361b80652e4972ed727b/json/swagger-resolved.json https://github.com/wicrs/docs/blob/bcfa0c9125ff5808388bc7c12aba41f76d91c153/json/swagger-resolved.json

you should try

bump diff https://raw.githubusercontent.com/wicrs/docs/8e0e99de1db6fb9b3d04361b80652e4972ed727b/json/swagger-resolved.json https://raw.githubusercontent.com/wicrs/docs/bcfa0c9125ff5808388bc7c12aba41f76d91c153/json/swagger-resolved.json