Skip to content
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

Windows - Prefect GitHub get_directory does not clone any files to the local_path #13180

Open
4 tasks done
tylerjthomas9 opened this issue Apr 30, 2024 · 0 comments
Open
4 tasks done
Labels
arch:windows Related to the Windows OS bug Something isn't working

Comments

@tylerjthomas9
Copy link

tylerjthomas9 commented Apr 30, 2024

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Prefect documentation for this issue.
  • I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

I am trying to clone a GitHub repo inside of a flow, but when I run it on Windows, the repo is not cloned, and the destination folder is empty.

I have tested my git installs, and both of them are able to clone the repo.

Reproduction

This code works on Ubuntu, but not windows.

from prefect_github import GitHubCredentials, GitHubRepository
repo_url = "https://github.com/PrefectHQ/prefect"
local_path = "./prefect"
repo = GitHubRepository(repository_url=repo_url)
repo.get_directory(local_path=local_path)

Error

The `local_path` is an empty folder on Windows, and Ubuntu has a clone of the repo.

Versions

Version:             2.18.1
API version:         0.8.4
Python version:      3.12.2
Git commit:          8cff545a
Built:               Thu, Apr 25, 2024 3:40 PM
OS/Arch:             linux/x86_64
Profile:             default
Server type:         ephemeral
Server:
  Database:          postgresql



Version:             2.18.1
API version:         0.8.4
Python version:      3.12.3
Git commit:          8cff545a
Built:               Thu, Apr 25, 2024 3:40 PM
OS/Arch:             win32/AMD64
Profile:             default
Server type:         server

Additional context

No response

@tylerjthomas9 tylerjthomas9 added bug Something isn't working needs:triage Needs feedback from the Prefect product team labels Apr 30, 2024
@zzstoatzz zzstoatzz added arch:windows Related to the Windows OS and removed needs:triage Needs feedback from the Prefect product team labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch:windows Related to the Windows OS bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants