codeoverflow-org / chatoverflow

What if you could combine the power of chat bots, streamer support sites and social media? This is chat overflow.
http://codeoverflow.org
Eclipse Public License 2.0
57 stars 12 forks source link

Plugins get incorrectly fetched if they contain capital letters #163

Closed hlxid closed 4 years ago

hlxid commented 4 years ago

Description

Plugins with capital letters in their names are incorrectly fetched on systems with case sensitive file names. The fetched project definition always has the directory in lower case which is fine for case preserving or case insensitive systems like windows. Sbt will then try to load the plugin from the lower case directory which doesn't contains anything and therefore doesn't build the plugin.

How to reproduce

Have a plugin directory with at least one capital letter (e.g. plugins-private/Voteban) and then run the sbt fetch task. The project definition of the plugin in the plugins.sbt looks something like this:

lazy val `Voteban` = (project in file("plugins-private/voteban")).dependsOn(apiProject)

You can see that the directory name didn't preserve cases but the variable name of the plugin project did. Sbt won't compile the plugin and just spit out an empty jar.