Skip to content

[BUG][Git] Use of case sensitive file names in rust samples causes issues for Mac and Windows machines #21279

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

Closed
3 of 4 tasks
aghajani opened this issue May 14, 2025 · 2 comments

Comments

@aghajani
Copy link
Contributor

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

A fresh clone of master branch shows these lines on Mac (and probably Windows too). It creates a series of false uncommitted changes (same file names if case insensitive overriding each other) all the time:

Cloning into 'openapi-generator'...
remote: Enumerating objects: 904252, done.
remote: Counting objects: 100% (432/432), done.
remote: Compressing objects: 100% (259/259), done.
remote: Total 904252 (delta 278), reused 174 (delta 173), pack-reused 903820 (from 3)
Receiving objects: 100% (904252/904252), 258.64 MiB | 2.10 MiB/s, done.
Resolving deltas: 100% (588494/588494), done.
Updating files: 100% (57375/57375), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'samples/client/petstore/rust/hyper/petstore/docs/DuplicateTest.md'
  'samples/client/petstore/rust/hyper/petstore/docs/Duplicatetest.md'
  'samples/client/petstore/rust/hyper0x/petstore/docs/DuplicateTest.md'
  'samples/client/petstore/rust/hyper0x/petstore/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest-trait/petstore/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest-trait/petstore/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore-async/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore-async/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Duplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicatetest.md'
  'samples/client/petstore/rust/reqwest/petstore/docs/DuplicateTest.md'
  'samples/client/petstore/rust/reqwest/petstore/docs/Duplicatetest.md'

pinging @wing328 and Rust technical committe: @frol @farcaller @richardwhiuk @paladinzh @jacob-pro

openapi-generator version

N/A

OpenAPI declaration file content or url

N/A

Generation Details

N/A

Steps to reproduce

git clone on Mac or Windows machine

@wing328
Copy link
Member

wing328 commented May 14, 2025

We are aware of the issue. Will try to come up with a fix shortly.

@wing328
Copy link
Member

wing328 commented May 15, 2025

closed via #21282

can you please pull the latest master to give it another try ?

@wing328 wing328 closed this as completed May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants