-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
Recommended dependencies should not be installed during upgrade and not be shown as missing. #4769
Comments
This is not a supported workflow. We do not wish you to simply omit dependencies. In this case you can |
This is unfortunate as at least the vendor package for docker installs symlinks into |
@MikeMcQuaid, I do not want to |
@mfriedenhagen Please reread the command I recommended in my reply. |
Hello @MikeMcQuaid,
Maybe non build relevant dependencies should be dropped at all? |
No need to apologise but thanks anyway ❤️
I'm afraid this is currently unavoidable.
No, it'll need to stay as it is now, sorry.
There's certainly an argument for it being removed in this case and added e.g. to |
If |
After having perused the requirements and install documentation for gitlab-runner, I see no reason to have FWIW, the recommended macOS gitlab-runner installation technique is to just grab the latest go binary via curl. I strongly suspect, but have not personally tested, that a gitlab-runner installation will be able to use docker whether or not it was present on the system during the build. My vote is to drop this from a recommended dep and possibly add a caveat. |
IIRC several formulae have a docker dep that isn't needed at build time, opened Homebrew/homebrew-core#31582 |
brew
to installdocker
as I am using the vendor's edge channel, which e.g. includes a local Kubernetes feature.gitlab-runner
,docker
is marked as arecommended
dependency, so I installedgitlab-runner
withbrew install --ignore-dependencies gitlab-runner
.brew upgrade
, as a workaround I do the following:brew doctor
orbrew missing
I still get warnings.brew
to ignore recommended but not strictly needed dependencies.gitlab-runner
even in shell runner mode where I would not needdocker
at all.So my proposal would be that
brew
somehow offers something like--ignore-recommended
and stores this information somehow. I then expect:brew upgrade
does not override my decision.brew doctor
andbrew missing
do not complain about my decision.For
gitlab-runner
alone, I could submit a PR to removedocker
as dependency, however I could imagine that this is not the only formulae with a problem like this. 240 formulas inhomebrew-core
have recommended dependencies.The text was updated successfully, but these errors were encountered: