-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Remove *.gz from default .yarnclean #4450
Comments
Sounds fair. Would you like to submit a PR? |
That said, this would be a breaking change for people relying on this behavior. |
Sure, will do a PR. This is only a default value for cleanup. Just removing Alternatively (or in addition) - maybe worth giving some note to user if some files were cleaned up. Like basic stats. For example:
In this case it will be both helpful and will act as an indication/reminder that there is an auto-cleaning process in place. |
The thing with |
My problem was, that I personally set up autoclean couple of months ago and completely forgot about it, because it is 'auto'. Showing list of files would be too heavy, I was more thinking about one line stats/reminder that there are some files deleted by autoclean. This way it would be impossible to forget about it. Regarding pr it may be not as simple as removing one line. I ran tests yesterday with gz removed and got like 30 tests failing. Reverted to master and still had about 7 test failing. This is strange since I could see tests pass on circleci. I am on the latest macbook pro and tests run for over 2 minutes. Will have to dig a bit more to figure out why tests may fail on master branch first. |
Just a heads up, Lodash v5 will ship with |
I think it is reasonable to remove That means 2 PRs. Anyone up for it? They should be fairly simple. |
Not sure if @nkbt is working on the one line reminder. If not, I can give it a try. I will start by removing the .gz from the default list too :) |
I just made a PR to remove the *.gz line from the default filters used to generate the default .yarnclean file (PR #4601) I'll prepare something for the one-line reminder in the meantime. |
**Summary** I removed the *.gz from the default .yarnclean generated by the `yarn autoclean --init` command. **Test plan** I tested by hand and launch `yarn test` and didn't find a test case for the autoclean --init option. If needed I could write a test case to check the default .yarnclean file content against the constant DEFAULT_FILTER. I hope it resolve half the issue #4450 :)
…#4601) **Summary** I removed the *.gz from the default .yarnclean generated by the `yarn autoclean --init` command. **Test plan** I tested by hand and launch `yarn test` and didn't find a test case for the autoclean --init option. If needed I could write a test case to check the default .yarnclean file content against the constant DEFAULT_FILTER. I hope it resolve half the issue yarnpkg#4450 :)
Do you want to request a feature or report a bug?
bug
What is the current behavior?
autoclean
command has*.gz
in default.yarnclean
file.https://github.com/yarnpkg/yarn/blob/master/src/cli/commands/autoclean.js#L56
Problem: some packages are coming with
gz
to reduce package sizeI reckon it is quite a minor issue, but not obvious why required files are missing.
If the current behavior is a bug, please provide the steps to reproduce.
Result:
Running same code but omitting
yarn autoclean --init
line:What is the expected behavior?
gz
should stayPlease mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: