Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #9400
Closed
Open
Issue created May 04, 2021 by Administrator@rootContributor0 of 1 checklist item completed0/1 checklist item

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

Created by: hauntingEcho

Bug Report Checklist

  • [ X ] Have you provided a full/minimal spec to reproduce the issue?
  • [ N/A ] Have you validated the input using an OpenAPI validator (example)?
  • [ X ] Have you tested with the latest master to confirm the issue still exists?
  • [ X ] Have you searched for related issues/PRs?
  • [ X ] What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

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

  • filepath / vs \
  • alphabetically ordered files - / before vs after letters
  • /r/n vs /n
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

Assignee
Assign to
Time tracking