-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
neofetch: remove optional dependencies #79439
Conversation
This is true, unless they provide benefits to the user. https://github.com/dylanaraps/neofetch/wiki/Dependencies suggests that both these are required though. |
Thank you for your comment and the link you provided! The following is stated at the top of the link you commented:
I saw that homebrew can mark dependencies as optional, would this be an idea? I want to prevent installing these depencies just because of an optional feature:
It seems quite heavy for only adding in support for showing images, especially because this is not the default behaviour. (it is showing ascii art, not images). Let me know what you think. |
This is not supported in homebrew-core since it breaks automated testing for formulae.
Most of these are pretty common dependencies for software. If you really want to get rid of them you can always use |
I'm a bit more sympathetic to the removal of |
Yeah keeping screenresolution seems reasonable. The PR is written by the author, the wiki written by someone else. The output of neofetch with default configuration is the same for both with imagemagick and without:
The only difference is of course the removed package and a change in memory, not in the ascii art of the OS logo. Let's check the difference in time: Without imagemagick:
With imagemagick:
Not that much difference. It seems that neofetch can use the It's in |
I'm in favor of removing the
It's not used at all with the default config, and I've never seen anyone posting neofetch screenshots enabling the image option (well, except the author themself). Plus the feature requires supported terminals and has its own quirks. To me this is just pulling down lots of dependencies people rarely need. |
I'm fine with removing Oh, and please rebase to pull in changes from #79442. (With |
Sounds good! Thank you for your reminder. I will rebase and and add the dependency on screenresolution back in. |
Great. Wheen you add |
Imagemagick is optional to add extra features to neofetch. The default configuration is to work without imagemagick. Source: - [image: Remove imagemagick dependency and draw images directly.](dylanaraps/neofetch#956)
Hi! I did the following: $ brew update
$ cd (brew --repository homebrew/core)
$ git checkout neofetch-remove-deps
$ git rebase master
$ brew edit neofetch
$ git add Formula/neofetch.rb
$ git commit --amend
$ git push [email protected]:yochem/homebrew-core.git neofetch-remove-deps
To github.com:yochem/homebrew-core.git
! [rejected] neofetch-remove-deps -> neofetch-remove-deps (non-fast-forward)
error: failed to push some refs to 'github.com:yochem/homebrew-core.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details. How could this happen? I'm pretty sure I'm not behind the remote. |
Ah, as per 'Note about fast-forwards in the git push man page:
So git push --force would solve this? I'm not doing this confirmation because it feels weird to force push haha. |
|
Ready for review! |
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.
Thanks, @yochem.
🤖 A scheduled task has triggered a merge. |
First time contributor here, please let me know if I did something wrong :)
The dependencies are optional. Optional dependencies should not be
listed in homebrew.
Source:
image: Remove imagemagick dependency and draw images
directly.
system_profiler is used as fallback (link to code):
https://github.com/dylanaraps/neofetch/blob/a980dc8e8be54e57a1c64518fb68c166b84cbd2c/neofetch#L3007-L3014
Have you followed the guidelines for contributing?
Have you ensured that your commits follow the commit style guide?
Have you checked that there aren't other open pull requests for the same formula update/change?
Have you built your formula locally with
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?Is your test running fine
brew test <formula>
, where<formula>
is the name of the formula you're submitting?Does your build pass
brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?