Skip to content

Commit

Permalink
formula_auditor: handle redis relicense
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Linnane <[email protected]>
  • Loading branch information
p-linnane committed Mar 21, 2024
1 parent 0e981bd commit 1021d37
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Library/Homebrew/formula_auditor.rb
Expand Up @@ -519,6 +519,18 @@ def audit_hashicorp_formulae
"It must not be upgraded to version #{relicensed_version} or newer."
end

# https://redis.com/blog/redis-adopts-dual-source-available-licensing
REDIS_RELICENSED_VERSION = "7.4"

def audit_redis
return if formula.name != "redis"
return unless @core_tap
return if formula.version < Version.new(REDIS_RELICENSED_VERSION)

problem "Redis was relicensed to a non-open-source license from version 7.4. " \

Check warning on line 530 in Library/Homebrew/formula_auditor.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/formula_auditor.rb#L530

Added line #L530 was not covered by tests
"It must not be upgraded to version 7.4 or newer."
end

def audit_keg_only_reason
return unless @core_tap
return unless formula.keg_only?
Expand Down

0 comments on commit 1021d37

Please sign in to comment.