bug: importing functions from other modules in repository doens't work consistently #81
Labels
priority/2
This issue stalls work on the project or its dependents, it's a blocker for a release
type/bug
Something isn't working as expected
Component
Python SDK, infrahubctl
Infrahub SDK version
0.14.0
Current Behavior
When you want to import functions (or classes, variables) from other python modules into python transformations or generators then there is inconsistency on how this can be achieved.
Expected Behavior
Ideally we can import functions / classes variables from modules using relative imports when doing this in tranformations and generators, running locally or within Infrahub.
This way common code in transformations and generators can be shared in modules that are located anywhere within the repository.
Steps to Reproduce
.infrahub.yml
filetransformers/configurations.py
with the following contentstransformers/utils.py
with the following contentstest.gql
at the root of the repository with the following contentsinfrahubctl transform configuration
> issue importing the get_value functionAdditional Information
No response
The text was updated successfully, but these errors were encountered: