homebysix / recipe-robot

A kick ass tool for creating AutoPkg recipes.
Apache License 2.0
300 stars 28 forks source link

Failure to invalidate cache produces recipes for wrong app #15

Closed homebysix closed 9 years ago

homebysix commented 9 years ago

It looks like Recipe Robot can get confused about which recipes it's building if the previous app's cache remains in the cache folder (either by using --keep-cache or by interrupting a run).

Steps to reproduce:

  1. Start this, but interrupt it when it gets to the unzipping part:

    recipe-robot --verbose http://www.coconut-flavour.com/downloads/coconutBattery_3_2_1.zip
  2. Run this fully:

    recipe-robot --include-existing --verbose http://delicious-monster.com/downloads/DeliciousLibrary3.zip
  3. Observe that the resulting recipes are for coconutBattery, not Delicious Library.

Only two hard things in computer science, they say: cache invalidation, naming things, and off-by-one errors.