Skip to content

Tap uses deprecated stanza #2

Description

@agross

Homebrew logs this regarding this tap:

Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the zzet/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/zzet/homebrew-tap/Casks/gortex.rb:56

Line 56 on my machine starts like this:

  postflight do
    bin = File.join(HOMEBREW_PREFIX, "bin", "gortex")
    next unless File.executable?(bin)
    probe = system_command(bin, args: ["daemon", "status"],
                           must_succeed: false, print_stdout: false)
    next unless probe.success?
    system_command(bin, args: ["daemon", "restart"], must_succeed: false)
  end

@zzet

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions