https://github.com/b-ryan/lein_bug
Project demonstrating possible bug with leiningen 2.5.0
https://github.com/b-ryan/lein_bug
Last synced: 3 months ago
JSON representation
Project demonstrating possible bug with leiningen 2.5.0
- Host: GitHub
- URL: https://github.com/b-ryan/lein_bug
- Owner: b-ryan
- License: epl-1.0
- Created: 2014-09-18T20:19:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-18T22:07:19.000Z (over 11 years ago)
- Last Synced: 2025-02-28T07:57:21.824Z (11 months ago)
- Language: Clojure
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Demonstrating the bug:
In the following, I create a jar and then check to see whether it contains the
resources from `resources/base` as well as `resources/`.
### Create the jar with 'prod' profile
```bash
$ lein clean
$ lein with-profile prod jar
Created /home/vagrant/src/xyz/target/xyz-0.1.0-SNAPSHOT.jar
```
### Check :resource-paths using pprint
```bash
$ lein with-profile prod pprint
...
:resource-paths
("/home/vagrant/src/xyz/resources/prod"
"/home/vagrant/src/xyz/resources/base"),
...
```
Looks good so far!
### Check the contents of the jar for base.txt and prod.txt
```bash
$ jar tvf target/xyz-0.1.0-SNAPSHOT.jar | grep '\.txt'
5 Thu Sep 18 16:04:42 EDT 2014 base.txt
```
Oh noes!
If you repeat the above using `lein 2.4.3` everything is the same except
the jar contains both files:
```bash
$ jar tvf target/xyz-0.1.0-SNAPSHOT.jar | grep '\.txt'
5 Thu Sep 18 16:05:00 EDT 2014 prod.txt
5 Thu Sep 18 16:04:42 EDT 2014 base.txt
```