Hello, I would like to use an open git repository,...
# prefect-server
g
Hello, I would like to use an open git repository, with no password. I just configure it in this way:
Copy code
storage = Git(
    repo="org/repo",
    flow_path="flows/my_flow.py"
)
The problem is that the docker agent is not able to get the repository, it gives the error: Failed to load and execute Flow's environment: NotGitRepository('No git repository was found at https://@github.com/org/repo.git') is there any way to avoid this "@" ? Thanks in advance
k
Yeah that looks right. Is it on GitHub?
g
sorry, I just edited the post above, it was not terminated...
k
Ah I see what you mean. I think you need to open an issue for this because the format assumes some authentication here. If this is on Github though, you can use Github storage with a public repo and it should work
g
unfortunately I wanted the flow to use some modules inside the repository, if I am correct GitHub storage picks only the flow file, not the full repo
k
Git storage is not intended for using modules as well. It’s meant to pick up stuff like
.yaml
and
.sql
but modules won’t work because of path issues
g
ok, I see, so I have to put all the code in a single file ?
k
Or use DockerRun + Github Storage to put the dependencies there
Or DockerStorage
g
but if I understand correctly, any time I change a file in the module I have to create a new docker image
k
Yes you would have to re-build