An open API service indexing awesome lists of open source software.

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

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
```