-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-528] [Bug] Local package relative paths in packages.yml
are converted to absolute rather than relative symlinks
#4538
Comments
packages.yml
are converted to *absolute* pathspackages.yml
are converted to absolute rather than relative symlinks
Thanks for reporting this. I can see that it would be much more convenient for your use case to have relative symlinks. The relevant code is in core/dbt/deps/local.py, LocalPinnedPackage.install. It seems like we could check for the existence of the absolute path, but symlink the relative path. I'm not sure if there would be operating system complications with this though. Windows can sometimes be an issue. We'll look into this. |
packages.yml
are converted to absolute rather than relative symlinkspackages.yml
are converted to absolute rather than relative symlinks
@gshank, my understanding is that the issue would arise if you run CC: @jtcohen6 |
Hey, I'm not sure how it's correlated with the above - let me know if I should move to a new issue 😉. I have following structure:
Where Now
And
Now running
This suggests that
Instead of expected one:
It seems that path resolving for EDIT: Temporal solutions is placing |
Notes: we would need to check the security implications of adding this functionality and being sure we implement it with the proper guardrails in place |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Is there an existing issue for this?
Current Behavior
Problem
dbt
allows local packages to be specified in thepackages.yml
, such as:common
project:packages.yml
are converted to absolute paths without the user's direction in thecore/dbt/clients/system.resolve_path_from_base
function:Expected Behavior
If a relative path is given, then the symlink should be this relative path.
After all--- user has specified relative for a reason, and could provide an absolute path themselves if that was the desired behaviour.
Steps To Reproduce
Please see the example above; any relative path provided in a
packages.yml
gets converted to an absolute symlink, when it should be converted to a relative symlinkRelevant log output
No response
Environment
The text was updated successfully, but these errors were encountered: