apache / apisix-website

Apache APISIX Website
https://apisix.apache.org/
Apache License 2.0
130 stars 181 forks source link

docs: Issue in setting up project #1731

Open ASCE-D opened 1 year ago

ASCE-D commented 1 year ago

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

kayx23 commented 11 months ago

Transferring this issue back as the error message suggests this is about the apisix-website project, dev container

SkyeYoung commented 11 months ago

I will try to reproduce the problem tomorrow.

monkeyDluffy6017 commented 11 months ago

@SkyeYoung any update?

SkyeYoung commented 11 months ago

@monkeyDluffy6017 I got sick, so I didn't have time last week. Maybe I will have time this weekend.