-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chown not actually altering files #5
Comments
You have to write the file to a destination using |
Yes, that's what I tried in the first place, but for some reason it didn't put the files with modified permissions, it just left them unchanged. o_O |
For example, having:
and gulp.task('default', function () {
gulp.src(paths.deploy + '/index.html')
.pipe(chown('lisandro', 'adm'))
.pipe(chmod(755))
.pipe(gulp.dest(paths.deploy))
;
}); I run
and get
As you can see, chmod works but chown doesn't. Using Ubuntu 14.04.2 LTS x86_64, Node.js v0.10.25. |
Is this issue solved? I'm having the same issue. I can chmod just fine but chown doesn't work. I am using gulp.dest as well. When overwriting the same file nothing happens, and when putting it in a new directory it's set to root:root (running as root.) |
I now think this is actually a bug with |
I ran some tests (modified |
Best way forward would be to submit a failing test here: https://github.com/wearefractal/vinyl-fs |
I'm working on making the required changes to vinyl-fs and submitting them. But I'd love if someone also did what @sindresorhus suggested (I haven't worked with vinyl-fs before.) |
After running more tests, it seems that |
Probably a matter of mixing effective and real user IDs. |
This is very strange - I just commented out |
OK - a crude fix: |
Until this issue is fixed (by the |
Iiuc (?), this is the relevant issue @ vinyl-fs proj
which looks like it's got a commited fix @master
After installing
This task,
, run as root, does create the dest file, but ignores the chown; file's still created as root:root. I understand this^ is old -- from 2015 -- but it is still open ... What am I missing in the config/usage? Or, has the fix gone elsewhere? |
I'm fairly new to Node.js and Gulp so I surely must have misunderstood the whole thing, but please bear with me.
I applied the very example in the readme but files don't get chown'ed (I'm running gulp as root of course).
The problem seems to be that the
finish
function doesn't have any side effects, since the file stat data is changed in memory but never persisted:my dirty fix was adding this code:
but it doesn't feel right...
The text was updated successfully, but these errors were encountered: