<#9289 refactor: Avoid checking catalog cache key ...
# meltano-repo-activity
g
#9289 refactor: Avoid checking catalog cache key if user passed a custom catalog Pull request opened by edgarrmondragon ## Description ## Related Issues • Closes #XXXX ## Links • https://meltano.slack.com/archives/C069CQNHDNF/p1748436899403689 ## Summary by Sourcery Refactor SingerTap catalog discovery to support and prioritize user-provided catalogs, streamline cache handling, and enhance error messaging, with accompanying tests for custom catalog scenarios. Bug Fixes: • Improve error handling for missing or invalid custom catalog files Enhancements: • Introduce a new _get_catalog helper to centralize custom and cached catalog retrieval • Refactor discover_catalog to use _get_catalog and simplify cache key logic • Skip cache checks entirely when a custom catalog is supplied Tests: • Add tests for using a custom catalog, missing custom file, and invalid JSON scenarios meltano/meltano