Skip to content

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

Closed
@aghajani

Description

@aghajani

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions