Skip to content

Error when generating code using Docker on Windows #146

Description

@jkronegg

👓 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'"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions