Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For HOMEBREW_INSTALL_FROM_API #142

Closed
rcmdnk opened this issue Feb 12, 2023 · 0 comments
Closed

For HOMEBREW_INSTALL_FROM_API #142

rcmdnk opened this issue Feb 12, 2023 · 0 comments

Comments

@rcmdnk
Copy link
Owner

rcmdnk commented Feb 12, 2023

If export HOMEBREW_INSTALL_FROM_API=1 is set, core tap is not cloned and tap packages are not available locally.

Is there a way to find packages in core tap..?

rcmdnk added a commit that referenced this issue Feb 25, 2023
fix: combine.sh: run formatters on src/brew_file/*.py only before combine
fix: combine.sh: check imports precisely (for multiline import with bracket)
refactor: brew_file, add homebrew_tap_prefix, core_repo, cask_repo in opt
feat: brew_file: add api and cache in opt, to manage API mode, which becomes default from Homebrew 4.0.0
feat: remain homebrew/core homebrew/cask even at API mode in Brewfile. do not tap them at API mode.
fix: brew_file.get_appstore_list: use mdfind instead of mas (mdfind seems work fine for now, and finds more app than mas (e.g. Microsoft Word/Exel/PowerPoint). checking Contents/_MASReceipt/receipt method needs to assign directories, so that mdfind is better if it can detect all apps. it finds apps in trash box, too, but it can be rejected by mdls check (#145)
fix: remove brew_file.find_app, find_brew_app. instead, make token and check token in cask/formula. add generate_cask_token function to generate token, instead of using homebrew-cask's generate_cask_token (which is not available at api mode, and which does not work with Ruby 3.X) (#146)
fix: use brew info instead of reading tap's directories to find formulae/casks
fix: in addition, use $(brew --cache)/api/formula.json, cask.json to find formulae/casks for homebrew-core/cask. which is needed for api mode (currently, brew info --eval-all does not contains them at api mode) (#142)
feat: update check_casks (brew-file casklist): add app list installed from AppStore but have casks
refactor: move some basic functions to helper: get_formula_list, get_cask_list, get_info, get_formula_info, get_tap_casks, get_cask_info, get_tap_casks, get_leaves
feat: utils: add home_tilde
@rcmdnk rcmdnk closed this as completed Feb 25, 2023
rcmdnk added a commit that referenced this issue Feb 25, 2023
fix: combine.sh: run formatters on src/brew_file/*.py only before combine
fix: combine.sh: check imports precisely (for multiline import with bracket)
refactor: brew_file, add homebrew_tap_prefix, core_repo, cask_repo in opt
feat: brew_file: add api and cache in opt, to manage API mode, which becomes default from Homebrew 4.0.0
feat: remain homebrew/core homebrew/cask even at API mode in Brewfile. do not tap them at API mode.
fix: brew_file.get_appstore_list: use mdfind instead of mas (mdfind seems work fine for now, and finds more app than mas (e.g. Microsoft Word/Exel/PowerPoint). checking Contents/_MASReceipt/receipt method needs to assign directories, so that mdfind is better if it can detect all apps. it finds apps in trash box, too, but it can be rejected by mdls check (#145)
fix: remove brew_file.find_app, find_brew_app. instead, make token and check token in cask/formula. add generate_cask_token function to generate token, instead of using homebrew-cask's generate_cask_token (which is not available at api mode, and which does not work with Ruby 3.X) (#146)
fix: use brew info instead of reading tap's directories to find formulae/casks
fix: in addition, use $(brew --cache)/api/formula.json, cask.json to find formulae/casks for homebrew-core/cask. which is needed for api mode (currently, brew info --eval-all does not contains them at api mode) (#142)
feat: update check_casks (brew-file casklist): add app list installed from AppStore but have casks
refactor: move some basic functions to helper: get_formula_list, get_cask_list, get_info, get_formula_info, get_tap_casks, get_cask_info, get_tap_casks, get_leaves
refactor: remove get_tap_path, which is not needed (file searches to find formulae/casks were removed, use brew info information)
feat: utils: add home_tilde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant