dbt deps does not handle non-master default branch
See original GitHub issueSteps to reproduce
- Add a package using a the git syntax. The package must use a default branch other than
master
. In this example, the default branch ismain
(this package is currently an internal package but will be public soon)
$ cat packages.yml
packages:
- git: git@github.com:fishtown-analytics/dbt-artifacts.git
- Run
dbt deps
$ dbt deps
Running with dbt=0.19.0
Encountered an error:
Error checking out spec='master' for repo git@github.com:fishtown-analytics/dbt-artifacts.git
fatal: couldn't find remote ref master
Expected behavior
Package should install from the default branch, main
and warn about an unpinned package
If I do specify revision: main
, I also expect to get an unpinned error, however currently no warning is shown.
dbt version
0.19.0 😃
Additional context
Going to be more common since GitHub updated their default branch name.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
dbt deps does not handle non-master default branch
Steps to reproduce. Add a package using a the git syntax. The package must use a default branch other than master .
Read more >deps - dbt Developer Hub
dbt deps pulls the most recent version of the dependencies listed in your packages.yml from git. See Package-Management for more information.
Read more >ORA-12700 to ORA-19400 - Oracle Help Center
Action: This error should not normally occur. If it persists, contact Oracle Support Services. ORA-12807: process queue could not receive parallel query message....
Read more >IMS: Diagnosis - IBM
If an optional item appears above the main path, that item has no effect on ... job hangs in the system and does...
Read more >GoldMine Administrator's Guide - Product Documentation
“Ivanti”), and may not be disclosed or copied without prior written consent ... Branch to Event ... Set Outlook as Default E-mail Application...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jtcohen6 , @clrcrl I want to pick up this task if nobody minds
Here is my ideas:
And one more possible change that is out of the scope but is related
💡 just jotting down my thoughts here, I haven’t tested this out. I know this applies to GitHub: after running
git clone
the default branch defined in GitHub will be checked out locally. When there is noversion
supplied for a package inpackages.yml
, we should probably:HEAD
here?)There should be no reference to
master
after these changed.When the
version
supplied for a package is a branch name, we could:version
points to a branch as opposed to a tag and display an appropriate warning.I apologize if this is repeating or different than was is mentioned above! I think the main issue here is
git
has no notion of default branch, sogit clone
is the important piece to get this info from.