Bird
0
0

You want to install a package from a GitHub repository instead of the dbt Hub. How do you specify it in packages.yml?

hard📝 Application Q8 of 15
dbt - Packages and Reusability
You want to install a package from a GitHub repository instead of the dbt Hub. How do you specify it in packages.yml?
A- package: dbt_utils version: 0.8.0
B- git: "https://github.com/fishtown-analytics/dbt_utils.git" revision: 0.8.0
C- git_url: "https://github.com/fishtown-analytics/dbt_utils.git" tag: 0.8.0
D- repo: "https://github.com/fishtown-analytics/dbt_utils.git" version: 0.8.0
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct key for GitHub source

    To install from GitHub, use the git key with the repository URL and specify revision for version/tag.
  2. Step 2: Eliminate incorrect keys

    package is for dbt Hub packages. git_url and repo are not recognized keys.
  3. Final Answer:

    - git: "https://github.com/fishtown-analytics/dbt_utils.git" revision: 0.8.0 -> Option B
  4. Quick Check:

    GitHub packages use 'git' and 'revision' keys [OK]
Quick Trick: Use 'git' and 'revision' keys for GitHub packages [OK]
Common Mistakes:
MISTAKES
  • Using 'package' key for GitHub repos
  • Using unrecognized keys like 'git_url' or 'repo'
  • Omitting revision or tag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes