-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Feature metadata refactor #151
Conversation
@phated Got a brief summary of the changes inside this? I haven't been keeping up with the symlink/chown issues |
@contra Goals of these PRs:
A lot of stuff is boilerplate that would have happened in node core (like my |
Actually |
@erikkemperman currently trying to fix the features we currently support, we can talk about feature additions after. |
Fair enough :-) Just it was cute that |
dbae7f4
to
1f1790c
Compare
Working on some tests today |
222113b
to
d57b383
Compare
@erikkemperman should we use |
8591013
to
bc7eb9c
Compare
Still more to do but made great progress today. Now sleep. |
@phated PS I would always move constants created with a function call (like |
3d06dbd
to
fa202ca
Compare
@erikkemperman @piranna @contra I've finished the "fileOperations" tests with 100% coverage. Could you review and let me know if anything is missing? I plan to work on "dest" tests next to get coverage on the new stuff and handle some edge cases we aren't testing. Thanks! |
Coverage is through the roof, finished the fileOperations unit tests (as noted above), added some more Once I get thorough reviews, I'll squash my stuff together. Anyway, tests are exhausting so I'm headed off for the night. |
@@ -32,7 +32,7 @@ function dest(outFolder, opt) { | |||
|
|||
var sourcemapOpt = opt.sourcemaps; | |||
if (typeof sourcemapOpt === 'boolean') { | |||
sourcemapOpt = { sourcemaps: sourcemapOpt }; | |||
sourcemapOpt = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wasn't a valid option for gulp-sourcemaps so I snuck it in
@phated Unfortunately I am kinda swamped this week -- will have some time to review more thoroughly this weekend if still needed. Couple of things I notice at a glance: I was really curious how you would go about unit testing the not-owned file checks. Because I am pretty sure that files you get from git are always owned by whoever ran the git command that put them there. How could it not? And sure enough, having just fetched in your branch, the Another thing I notice is that there are a couple About whether or not to throw errors on failed Would it therefore make sense to have something like a
|
@erikkemperman thanks for the quick points and I'll wait on any merges until I get a thorough review. I should have time to work on this on the weekend also. I'll address your comments below: Thanks for checking the ownership stuff. I didn't know that's how git worked because it keeps file modes and it would have been annoying for me to check that. I'll dig into it some more. I don't believe I have added any lines with I don't think it's appropriate to swallow the errors, especially now that we have a lot of checks on the diff and ownership; However, if the vinyl object is a directory and we successfully write it with mode |
@phated
So instead of having a I actually think that makes sense for unlikely edge-cases like directory mode '000' too -- it won't error until user tries to violate his own restriction, which is not vfs' problem? |
Hm, you were probably talking about the order in which But conversely, if the directory already exists and the mode on the vinyl is less restrictive than the one on disk, then Should we be determining whether the requested |
@erikkemperman the mode would be the same (barring any crazy getter usage) because the mkdirp call is passed the |
No time to check just now, but does mkdirp also update the mode from |
cb54be7
to
3ba6796
Compare
Wow, a green check next to appveyor...it's the beginning of the end! |
c56fae1
to
fd33945
Compare
Rebased and tests are running. Going to review the full diff and write some docs on these changes (and note it doesn't work on Windows) and then ship this. |
64d3056
to
550edd5
Compare
8b1b39b
to
0cd8f22
Compare
Thanks for everyone that helped out on this: @piranna @erikkemperman @contra! This has been shipped as 2.3.2 |
@phated Thanks for taking this across the finish line 🌴 |
Clean diff against master. /cc @erikkemperman @contra @piranna
Ref #144