Skip to content

Commit

Permalink
Merge pull request #40 from apainintheneck/update-formula-api-loader-…
Browse files Browse the repository at this point in the history
…references

Update formula api loader references among other things
  • Loading branch information
apainintheneck authored Mar 3, 2024
2 parents 4cfeafc + d916687 commit c02db51
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Integration Tests
on:
push:
branches: main
pull_request:
schedule:
- cron: '0 10 * * Sun'
- cron: '0 10 * * Sat'
permissions:
contents: read

Expand Down
2 changes: 2 additions & 0 deletions cmd/api-readall-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def self.api_readall_test_args
def self.api_readall_test
args = api_readall_test_args.parse

ENV.delete("HOMEBREW_INTERNAL_JSON_V3")

Homebrew.with_no_api_env do
unless args.cask?
HDUtils::APIReadall::FormulaTest.run(
Expand Down
2 changes: 2 additions & 0 deletions cmd/branch-compare.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def self.branch_compare
args = branch_compare_args.parse
command = args.named

ENV.delete("HOMEBREW_INTERNAL_JSON_V3")

HDUtils::BranchDiff.diff_output(
command,
quiet: args.quiet?,
Expand Down
2 changes: 2 additions & 0 deletions cmd/generate-api-diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def self.generate_api_diff_args
def self.generate_api_diff
args = generate_api_diff_args.parse

ENV.delete("HOMEBREW_INTERNAL_JSON_V3")

command =
if args.formula?
[HOMEBREW_BREW_FILE, "generate-formula-api"]
Expand Down
2 changes: 2 additions & 0 deletions cmd/service-diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def self.service_diff_args
def self.service_diff
args = service_diff_args.parse

ENV.delete("HOMEBREW_INTERNAL_JSON_V3")

script_path = File.expand_path("../lib/diff-scripts/service_diff.rb", __dir__)
odie "Script #{script_path} doesn't exist!" unless File.exist?(script_path)

Expand Down
4 changes: 2 additions & 2 deletions lib/diff-scripts/service_diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def self.all_formulae

Homebrew::SimulateSystem.with(os: :macos) do
CORE_FORMULAE_NAMES.each do |formula_name|
formula = Formulary::FormulaAPILoader.new(formula_name).get_formula(:stable)
formula = Formulary::FromAPILoader.new(formula_name).get_formula(:stable)

service_content =
if formula.service.command?
Expand All @@ -151,7 +151,7 @@ def self.all_formulae

Homebrew::SimulateSystem.with(os: :linux) do
CORE_FORMULAE_NAMES.each do |formula_name|
formula = Formulary::FormulaAPILoader.new(formula_name).get_formula(:stable)
formula = Formulary::FromAPILoader.new(formula_name).get_formula(:stable)

next unless formula.service.command?

Expand Down

0 comments on commit c02db51

Please sign in to comment.