apisix-website
apisix-website copied to clipboard
docs: Issue in setting up project
when i create dev container it shows the following issue postCreateCommand failed with exit code 1. Skipping any further user-provided commands. Done. Press any key to close the terminal. it is due to scripts/generate-event-poster-card.sh file not working
$ yarn sync-docs && yarn generate-repos-info && yarn generate-picked-posts
$ bash ./scripts/generate-event-poster-card.sh && yarn workspace scripts sync-docs
./scripts/generate-event-poster-card.sh: line 2: $'\r': command not found
./scripts/generate-event-poster-card.sh: line 4: $'\r': command not found
./scripts/generate-event-poster-card.sh: line 7: $'\r': command not found
cp: cannot stat '/workspaces/apisix-website/scripts/..'$'\r''/config/event-poster-card.json': No such file or directory
cp: cannot stat '/workspaces/apisix-website/scripts/..'$'\r''/website/src/theme/Footer/event-poster-card.json': No such file or directory
cp: cannot stat '/workspaces/apisix-website/scripts/..'$'\r''/website/src/theme/Footer/*': No such file or directory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[627908 ms] postCreateCommand failed with exit code 1.
Skipping any further user-provided commands.
Done. Press any key to close the terminal.
Project initial setup has issues build commands need to be fixed or documentations are not updated it need to be updated