lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 74 forks source link

broken "-f alternate_flyfile" parameter on fly@1.0.1 #148

Closed tiagocpontesp closed 8 years ago

tiagocpontesp commented 8 years ago
 env DEBUG='*' node_modules/.bin/fly -f tasks/dist.js
fly:find find this file: %f +0ms flyfile.js
 name:             AssertionError
 actual:           null
 expected:         true
 operator:         ==
 message:          missing path
 generatedMessage: false
stack: 
  - AssertionError: missing path
  -     at Module.require (module.js 365:3)
  -     at require (internal/module.js 16:19)
  -     at Object.module.exports [as spawn] (~/jobs/oneoffs/skeleton/node_modules/fly/lib/cli/spawn.js 20:9)
  -     at next (native)
  -     at onFulfilled (~/jobs/oneoffs/skeleton/node_modules/co/index.js 65:19)
lukeed commented 8 years ago

@tiagocpontesp based on previous source code, it was actually a bug that you were able to use a file named dist.js as your flyfile :laughing:

In which case, that bug has been fixed and flyfiles can only be named flyfile.js, no caps either.