-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
dbt deps does not handle non-master default branch #3057
Comments
Good call :) |
@jtcohen6 , @clrcrl Here is my ideas:
And one more possible change that is out of the scope but is related
|
@VasiliiSurov Thanks for your interest! We'd welcome a contribution for this, and your proposal sounds solid. I imagine we may also wish to update the unit test here: Let me know if I can be of any help :) |
💡 just jotting down my thoughts here, I haven't tested this out. I know this applies to GitHub: after running
There should be no reference to When the
I apologize if this is repeating or different than was is mentioned above! I think the main issue here is |
@kwigley If I correctly understood your idea we can achieve it by simple replacing 'master' to 'HEAD' in the same 3 lines I mentioned before and no need to jump through hoops to get the name of the default branch. |
@VasiliiSurov I think so! Don't quote me 😄 |
Steps to reproduce
master
. In this example, the default branch ismain
(this package is currently an internal package but will be public soon)dbt deps
Expected behavior
Package should install from the default branch,
main
and warn about an unpinned packageIf 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
Relevant code
Going to be more common since GitHub updated their default branch name.
The text was updated successfully, but these errors were encountered: