Package Hub for dbt.
The hubcap.py script which generates PRs for new versions of packages is hosted at https://github.com/dbt-labs/hubcap and runs hourly on Heroku. To add a new package to the hub index, create a PR which adds the package name to this file.
These changes span this repo and hubcap, which publishes new versions for every repo in its hub.json.
The package stays installable, and its page stays up with all its versions, listed as archived. It's hidden from the homepage and the org's page, and stops getting new releases.
- Add
ORG_NAME/PACKAGE_NAMEto thepackageslist in blocklist.json. To hide every package in an org, add the org to theorganizationslist instead. - Remove the repo from hubcap's
hub.json. If you skip this step, any new tag still gets published.
If the package was renamed, archive it as above. Then add "redirectname": "NEW_PACKAGE_NAME" to data/packages/ORG_NAME/OLD_PACKAGE_NAME/index.json. The old package page then shows a banner linking to the new name, and dbt deps warns anyone still installing the old name.
Removing a package or version takes it off the hub entirely. Be mindful that dbt deps will fail for anyone who still depends on it.
- Whole package: first remove the repo from hubcap's
hub.json, then deletedata/packages/ORG_NAME/PACKAGE_NAME/. If you do it in the other order, hubcap re-adds any versions whose tags still exist. - Single version: the package maintainer deletes the git tag first. Then delete
data/packages/ORG_NAME/PACKAGE_NAME/versions/VERSION.json. If the tag still exists, hubcap re-adds the version on its next run.
Structure unlikely to change, but not guaranteed!
- All packages (including hidden/redirected ones): https://hub.getdbt.com/api/v1/index.json
- All versions of a single package: https://hub.getdbt.com/api/v1/dbt-labs/dbt_utils.json