Skip to content

Allow blocking cask install methods #20122

Open
@SMillerDev

Description

@SMillerDev

Verification

Provide a detailed description of the proposed feature

Allow a setting HOMEBREW_FORBIDDEN_CASK_ARTIFACTS that allows the brew user to limit what casks can be used on the machine. The value to this would be a list of artifact types to block.

It would work like the license block list.

What is the motivation for the feature?

Since some casks have special requirements, users might not want to install them.
For example:

  • pkg requiring sudo
  • pkg installing anywhere on the device

How will the feature be relevant to at least 90% of Homebrew users?

Not sure if it will be, but it is relevant to some of the power users.

What alternatives to the feature have been considered?

Allowing a flag to block all sudo usage to block pkg installs, but it's a lot messier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    caskHomebrew Caskhelp wantedWe want help addressing this

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions