Skip to content

Commit

Permalink
Fix references to formula.json and cask.json
Browse files Browse the repository at this point in the history
These would be stranded after `formula.jws.json`.
  • Loading branch information
MikeMcQuaid committed Feb 24, 2023
1 parent a72573a commit 7787f48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/cmd/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,8 @@ EOS
else
echo "Failed to download ${json_url}!" >>"${update_failed_file}"
fi

rm -f "${HOMEBREW_CACHE}/api/${formula_or_cask}.json"
done
fi

Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/system_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def core_tap_config(f = $stdout)
f.puts "Core tap branch: #{core_tap_branch}"
end

if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.json") && formula_json.exist?
if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.jws.json") && formula_json.exist?
f.puts "Core tap JSON: #{formula_json.mtime.utc.strftime("%d %b %H:%M UTC")}"
elsif !CoreTap.instance.installed?
f.puts "Core tap: N/A"
Expand Down
2 changes: 1 addition & 1 deletion docs/Formula-Cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A *formula* is a package definition written in Ruby. It can be created with `bre

Homebrew uses Git for storing formulae and contributing to the project.

As-of [Homebrew 4.0.0](https://brew.sh/2023/02/16/homebrew-4.0.0/), formulae are downloaded from `https://formulae.brew.sh/api/formula.json`, which is automatically regenerated by a scheduled formulae.brew.sh job from the `master` branch of the homebrew-core repository.
As-of [Homebrew 4.0.0](https://brew.sh/2023/02/16/homebrew-4.0.0/), formulae are downloaded from JSON in <https://formulae.brew.sh> which is automatically regenerated by a scheduled formulae.brew.sh job from the `master` branch of the homebrew-core repository.

Homebrew installs formulae to the Cellar at `$(brew --cellar)` and then symlinks some of the installation into the prefix at `$(brew --prefix)` (e.g. `/opt/homebrew`) so that other programs can see what's going on. We suggest running `brew ls` on a few of the kegs in your Cellar to see how it is all arranged.

Expand Down

0 comments on commit 7787f48

Please sign in to comment.