{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/248","labels_url":"https://api.github.com/repos/facebook/buck/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/248/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/248/events","html_url":"https://github.com/facebook/buck/issues/248","id":56963002,"number":248,"title":"glob() seems to low case file names in some cases","user":{"login":"davido","id":347173,"avatar_url":"https://avatars.githubusercontent.com/u/347173?v=3","gravatar_id":"","url":"https://api.github.com/users/davido","html_url":"https://github.com/davido","followers_url":"https://api.github.com/users/davido/followers","following_url":"https://api.github.com/users/davido/following{/other_user}","gists_url":"https://api.github.com/users/davido/gists{/gist_id}","starred_url":"https://api.github.com/users/davido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davido/subscriptions","organizations_url":"https://api.github.com/users/davido/orgs","repos_url":"https://api.github.com/users/davido/repos","events_url":"https://api.github.com/users/davido/events{/privacy}","received_events_url":"https://api.github.com/users/davido/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-08T19:04:36Z","updated_at":"2015-03-03T12:04:55Z","closed_at":null,"body":"Problem with `glob` results in failing `gwt_binary()` rule on other platform. Consider the following rule:\r\n\r\n```\r\njava_library(\r\n  name = 'plugin-lib42',\r\n  srcs = glob(['java/' + 'org/ostrovsky/buck/Main.java']),\r\n  resources = glob(['java/**/*.java']),\r\n  deps = [':commons-io'],\r\n)\r\n```\r\n\r\nFiles that were explicitly listed in the `glob()` included set are low cased:\r\n\r\n```\r\nbuck.cmd targets --json :plugin-lib42\r\n[-] PARSING BUCK FILES...FINISHED 0,0s\r\n[\r\n{\r\n  \"annotationProcessorDeps\" : [ ],\r\n  \"annotationProcessorOnly\" : null,\r\n  \"annotationProcessorParams\" : [ ],\r\n  \"annotationProcessors\" : [ ],\r\n  \"buck.base_path\" : \"\",\r\n  \"deps\" : [ \":commons-io\" ],\r\n  \"exportedDeps\" : [ ],\r\n  \"extraArguments\" : [ ],\r\n  \"javac\" : null,\r\n  \"javacJar\" : null,\r\n  \"name\" : \"plugin-lib42\",\r\n  \"postprocessClassesCommands\" : [ ],\r\n  \"proguardConfig\" : null,\r\n  \"providedDeps\" : [ ],\r\n  \"resources\" : [ \"java\\\\org\\\\ostrovsky\\\\buck\\\\Main.java\" ],\r\n  \"resourcesRoot\" : null,\r\n  \"source\" : null,\r\n  \"srcs\" : [ \"java\\\\org\\\\ostrovsky\\\\buck\\\\main.java\" ],\r\n  \"target\" : null,\r\n  \"type\" : \"java_library\",\r\n  \"visibility\" : [ ]\r\n}\r\n]\r\n```\r\n\r\nWhen wildcard pattern is used, then the case of files is preserved:\r\n\r\n```\r\njava_library(\r\n  name = 'plugin-lib',\r\n  srcs = glob(['java/**/*.java']),\r\n  resources = glob(['java/**/*.java']),\r\n  deps = [':commons-io'],\r\n)\r\n```\r\n\r\n```\r\nbuck.cmd targets --json :plugin-lib\r\n[-] PARSING BUCK FILES...FINISHED 0,0s\r\n[\r\n{\r\n  \"annotationProcessorDeps\" : [ ],\r\n  \"annotationProcessorOnly\" : null,\r\n  \"annotationProcessorParams\" : [ ],\r\n  \"annotationProcessors\" : [ ],\r\n  \"buck.base_path\" : \"\",\r\n  \"deps\" : [ \":commons-io\" ],\r\n  \"exportedDeps\" : [ ],\r\n  \"extraArguments\" : [ ],\r\n  \"javac\" : null,\r\n  \"javacJar\" : null,\r\n  \"name\" : \"plugin-lib\",\r\n  \"postprocessClassesCommands\" : [ ],\r\n  \"proguardConfig\" : null,\r\n  \"providedDeps\" : [ ],\r\n  \"resources\" : [ \"java\\\\org\\\\ostrovsky\\\\buck\\\\Main.java\" ],\r\n  \"resourcesRoot\" : null,\r\n  \"source\" : null,\r\n  \"srcs\" : [ \"java\\\\org\\\\ostrovsky\\\\buck\\\\Main.java\" ],\r\n  \"target\" : null,\r\n  \"type\" : \"java_library\",\r\n  \"visibility\" : [ ]\r\n}\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/76933554","html_url":"https://github.com/facebook/buck/issues/248#issuecomment-76933554","issue_url":"https://api.github.com/repos/facebook/buck/issues/248","id":76933554,"user":{"login":"davido","id":347173,"avatar_url":"https://avatars.githubusercontent.com/u/347173?v=3","gravatar_id":"","url":"https://api.github.com/users/davido","html_url":"https://github.com/davido","followers_url":"https://api.github.com/users/davido/followers","following_url":"https://api.github.com/users/davido/following{/other_user}","gists_url":"https://api.github.com/users/davido/gists{/gist_id}","starred_url":"https://api.github.com/users/davido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davido/subscriptions","organizations_url":"https://api.github.com/users/davido/orgs","repos_url":"https://api.github.com/users/davido/repos","events_url":"https://api.github.com/users/davido/events{/privacy}","received_events_url":"https://api.github.com/users/davido/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T12:04:55Z","updated_at":"2015-03-03T12:04:55Z","body":"Yes. That's because the case issue was solved in this patch: [1].\r\n\r\n[1] https://github.com/davido/gerrit-buck-patch/blob/master/buck_gerrit.patch#L113,L134"}}