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.91k stars 6.58k forks source link

[BUG] Spurious changes in ./bin/utils/export_docs_generators.sh output on Windows #9401

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, from / vs \ filepath differences

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/utils/export_docs_generators.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

wing328 commented 3 years ago

Agreed there shouldn't be unwanted changes when running the script in windows.

Looks like ./bin/utils/export_docs_generators.sh needs to be updated to make it OS-independent.