Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when generating code using Docker on Windows #146

Closed
jkronegg opened this issue Apr 4, 2023 · 0 comments · Fixed by #147
Closed

Error when generating code using Docker on Windows #146

jkronegg opened this issue Apr 4, 2023 · 0 comments · Fixed by #147
Assignees

Comments

@jkronegg
Copy link
Contributor

jkronegg commented Apr 4, 2023

👓 What did you see?

When trying to generate the code with the make clean-all generate-all command using Docker on Windows, an error occurs.

csplit --quiet --prefix=build/Generated --suffix-format=%02d.php.tmp --elide-empty-files build/messages.php /^.*[.]php$/ {*}
rm -rf src-generated/*
for file in build/Generated**; do mkdir -p src-generated/$(head -n 1 $file | sed 's/[^/]*.php$//'); done
mkdir: cannot create directory 'src-generated/Attachment.php\r': Input/output error
make[1]: *** [Makefile:25: build/messages.php] Error 1
make[1]: Leaving directory '/app/php'
make: *** [Makefile:61: generate-php] Error 2

BTW, the CONTRIBUTING.md command to run Docker is incorrect on Windows.

✅ What did you expect to see?

When generating the code using Docker on Windows, I expect it to work properly according to the documentation.

📦 Which tool/library version are you using?

Cucumber Messages master branch obtained on 03 March 2023. Docker image obtained on 04 March 2023.

🔬 How could we reproduce it?

Steps to reproduce the behavior:

  1. Run the command to run Docker as written in CONTRIBUTING.md (BTW, the correct Powershell command is docker run --volume ${PWD}:/app --user 1000 -it cucumber/cucumber-build:latest bash
  2. Run the make clean-all generate-all command as written in CONTRIBUTING.md
  3. See error "cannot create directory 'src-generated/Attachment.php\r'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant