OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.44k stars 6.49k forks source link

[BUG] Spurious changes in `./bin/generate-samples.sh` output on Windows #9400

Open hauntingEcho opened 3 years ago

hauntingEcho commented 3 years ago

Bug Report Checklist

Description

running the steps required as part of the PR template generates a bunch of junk on Windows, including:

openapi-generator version

master branch

Generation Details

running the steps required as part of the PR template

Steps to reproduce
  1. Open git-bash on Windows
  2. git checkout master && git reset --hard && git clean -fdx to make sure you don't have any junk in your local repo
  3. ./mvnw clean package
  4. ./bin/generate-samples.sh to generate the samples
  5. git diff to see the unwanted changes.

Expected output: nothing in the diff Actual output: very long, containing a lot of spurious changes. See attached tmp.txt

acouvreur commented 9 months ago

Having the same issue, generated files contains the CRLF line ending when running the script on windows.