-
Notifications
You must be signed in to change notification settings - Fork 147
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
Rename yarn clean #52
Conversation
Unless there is more evidence from the community that the name is confusing I think it is not worth introducing the breaking change. |
There are 10 likes and 7 related bugs in the original bug. I haven't searched for more since then, but I am sure there are new ones. I am now aware of this myself, but somehow managed to shoot myself in the leg two times since then, mistyping yarn clean instead of yarn clean-all or yarn run clean. This breaks sass and the simplest way to fix it was to remove .yarnclean and remove and reinstall node_modules. Something should be done with this. |
Indeed, looks like people do get confused with that feature. |
I would agree - It should have a more descriptive and less general-use name, maybe |
I've been affected by this a few times. |
Ok, how does |
Looks like no one opposes, @jimmytheneutrino, would you update RFC? |
I'm still not convinced by any name including "clean".
I think something like "delete-package-assets" or "remove-module-files"
would be more obvious.
What the script is doing isn't "cleaning" in the way npm, git, et al use
the term. It is forcefully.deleting files a package author has included.
Obviously lots of packages include a lot of unnecessary stuff, the
attempted-safe-removal of which is an interesting feature. But it's not
"cleaning"!
Pete
…On 12 May 2017 22:17, "Konstantin Raev" ***@***.***> wrote:
Looks like no one opposes, @jimmytheneutrino
<https://github.com/jimmytheneutrino>, would you update RFC?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#52 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAIGb8LApjyvpmgfjtVdj58ndHpk9WA_ks5r5MxfgaJpZM4MbaUv>
.
|
I'm curious as to why This absolutely needs to be changed ASAP, and I don't think it matters that the RIGHT name is chosen, because I think everyone can agree that Suiting it's esoteric nature, I'd recommend something like |
I think it's silly to want to name it something esoteric. I think |
How about |
Well, I think that I do not like |
I updated the rfc with a fixed proposed name. The final name is still to be discussed upon, of course. |
In reply to: yarnpkg/yarn#2438 (comment) Fine with me. It is the core team who gonna work with it, so they must have their reasons. Most important is that |
Thanks, now who wants to send a PR? |
I read all threads about naming, cuz actually have the same misunderstanding and broke my build today (.yml in svgo). |
I was about to open a new RFC for SummaryImprove MotivationThere is a long history of issues and errors that arise from people running
I would separate these into 2 major issues:
For these cases, it is confusing because there is no list of what files will be deleted, and no confirmation when running the command. After it was run and deleted files, then you can view and modify
For these cases, there is no "undo" possible other than deleting Detailed designSeveral things we could do to improve the
|
I'm with @rally25rs I'ld choose one of these:
if not possible I'ld be fine with a force flag or something but then still... document it We migrated from npm to yarn and suddenly yarn clean did something totally unexpected and undocumented and I'm rather unsure if I should just use it and just stuff the .yarnclean file with everything I need to clean every once in a while or if this'ld be really really bad because it get's used internally for... something... |
@rally25rs I think your addendum is great! I especially like the If so, a PR to make this happen before 1.0 would be greatly appreciated since this would be a breaking change. |
I also agree with |
The reason for the "force" seems like a weird term in that context. What if we did What do you think about:
If we all like that, I should have time to work up a PR this week. |
The more I think about it, the more I like:
|
@rally25rs for some reason I still like using |
@BYK I could go either way... are you thinking:
|
@rally25rs I think we can create Also do you think we can get this read for 1.0? That means we have about 1 week or so. |
@BYK ask and ye shall receive yarnpkg/yarn#4252 I didn't have time tonight to put together a PR for the website/docs. I'll get that tomorrow. |
- `clean` has been renamed to `autoclean` (yarnpkg/rfcs#52) - added description (from `yarn help [command]`) to `cache`, `import` and `versions`
See also yarnpkg/yarn#2438