sindresorhus/gulp-tar

Support not-stream ouput

Closed this issue · 2 comments

Output of this plugin force the files to be a streams. At the same time many gulp plugins (for example gulp-chmod) does not work with streams. Here is my use case:

gulp.src('src/*')
    .pipe(tar('archive.tar'))
    .pipe(chmod(0644))
    .pipe(gulp.dest('release'));

It gives me Streaming not supported.

This plugins supports both streams and buffers: https://github.com/sindresorhus/gulp-tar/blob/master/test.js

As for gulp-chmod that was just an oversight, it should support streaming: sindresorhus/gulp-chmod@e05bfb4

@sindresorhus thanks for fixing streaming. Sorry for the issue to the wrong repository. Actually with the fix my use case works fine, thus I close the issue.