Skip to content
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

Deduplicators are case-sensitive on Windows #112

Open
dwickern opened this issue May 29, 2015 · 1 comment
Open

Deduplicators are case-sensitive on Windows #112

dwickern opened this issue May 29, 2015 · 1 comment

Comments

@dwickern
Copy link
Contributor

File paths with different case are logically equal on Windows: new File("foo") == new File("FOO").

Deduplicators use basic string equality to compare file paths (SbtWeb.scala#L419). If two file paths use different case, they will not be passed together through the deduplicator. This eventually results in a Duplicate mappings error.

@jroper
Copy link
Member

jroper commented Sep 1, 2017

How does this practically manifest itself? Generally mappings are generated by inspecting the file system, so two mappings with the same path should have the same case. If a mapping was manually configured, and the case didn't match what was on the filesystem, then you'd have a problem where the build would only work on case insensitive file systems - fixing that in sbt-web only solves the problem until someone goes and runs the build on Linux and it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants