Closed garyb closed 9 years ago
Thanks @garyb. I agree that we will probably have to pass the glob arguments as options instead of piping the files with gulp.src
. Regarding cross-spawn
, we can see how it goes. If it is still causing an issue, we can maybe find an alternative.
As mentioned in #36, Windows sucks. Er, I mean has a limit on the length of a command, and as of purescript/purescript#1155 the compiler now supports glob arguments directly for input source files.
I'd suggest now we should move away from piping
gulp.src(...)
into the tasks, and just make asrc
option argument - this way globbing forffi
andsrc
can behave consistently for the compiler's glob behaviour (which may subtly differ from gulp's), and will also solve our path length problem.Passing through
gulp.src
will unavoidably expand the globs (I think), so I don't know if there is another way to solve the path issue other than this. We may still have issues withcross-spawn
and this, as that seems to impose an extremely short path length, but it will be a step in the right direction at least.