{"id":19746854,"url":"https://github.com/b-ryan/lein_bug","last_synced_at":"2025-10-16T19:42:14.473Z","repository":{"id":20915810,"uuid":"24203679","full_name":"b-ryan/lein_bug","owner":"b-ryan","description":"Project demonstrating possible bug with leiningen 2.5.0","archived":false,"fork":false,"pushed_at":"2014-09-18T22:07:19.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T07:57:21.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b-ryan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-18T20:19:56.000Z","updated_at":"2014-09-18T22:19:51.000Z","dependencies_parsed_at":"2022-08-26T17:51:50.971Z","dependency_job_id":null,"html_url":"https://github.com/b-ryan/lein_bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/b-ryan/lein_bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-ryan%2Flein_bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-ryan%2Flein_bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-ryan%2Flein_bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-ryan%2Flein_bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b-ryan","download_url":"https://codeload.github.com/b-ryan/lein_bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b-ryan%2Flein_bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279230815,"owners_count":26130684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T02:16:03.954Z","updated_at":"2025-10-16T19:42:14.445Z","avatar_url":"https://github.com/b-ryan.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demonstrating the bug:\n\nIn the following, I create a jar and then check to see whether it contains the\nresources from `resources/base` as well as `resources/\u003cprofile\u003e`.\n\n### Create the jar with 'prod' profile\n\n```bash\n$ lein clean\n$ lein with-profile prod jar\nCreated /home/vagrant/src/xyz/target/xyz-0.1.0-SNAPSHOT.jar\n```\n\n### Check :resource-paths using pprint\n\n```bash\n$ lein with-profile prod pprint\n...\n:resource-paths\n(\"/home/vagrant/src/xyz/resources/prod\"\n \"/home/vagrant/src/xyz/resources/base\"),\n ...\n ```\n\n Looks good so far!\n\n### Check the contents of the jar for base.txt and prod.txt\n\n ```bash\n$ jar tvf target/xyz-0.1.0-SNAPSHOT.jar | grep '\\.txt'\n     5 Thu Sep 18 16:04:42 EDT 2014 base.txt\n```\n\nOh noes!\n\nIf you repeat the above using `lein 2.4.3` everything is the same except\nthe jar contains both files:\n\n\n```bash\n$ jar tvf target/xyz-0.1.0-SNAPSHOT.jar | grep '\\.txt'\n     5 Thu Sep 18 16:05:00 EDT 2014 prod.txt\n     5 Thu Sep 18 16:04:42 EDT 2014 base.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-ryan%2Flein_bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-ryan%2Flein_bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-ryan%2Flein_bug/lists"}