Jon at PRH
11/26/2024, 10:40 PMrepo = GitRepository(url="<https://github.com/jon/myrepo>")
repo.set_base_path('/home/jon/repos')
flow.from_source(source=repo, entrypoint="flow.py:my-flow")
Marvin
11/26/2024, 10:43 PMJon at PRH
11/26/2024, 10:43 PMMarvin
11/26/2024, 10:47 PMgit
library or similar tools to clone the repository where you want it, and then refer to it in your flow as needed.
For more details on handling Git repositories in Prefect, you might find these resources helpful:
- Store Flow Code
If setting the base path is crucial for your workflow, I recommend checking the Prefect community forums or reaching out directly through the Prefect Slack channel, as they may have more up-to-date or detailed configurations available.
And, oh, if only we could just tell these repositories to "don't panic" and go where they're supposed to, right?