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

Bug: Can't upload single files #583

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Conversation

kbolashev
Copy link
Member

@kbolashev kbolashev commented Jan 21, 2025

Repoduction:

$ dagshub upload user/repo a.txt --bucket

Ends up throwing out an exception about s3 client not being able to handle PurePosixPath. This PR fixes it by casting to string at the point of uploading to S3

Along the way figured out that single file uploading test also wasn't really testing the path correctly, so fixed that too.

@kbolashev kbolashev added the bug Something isn't working label Jan 21, 2025
@kbolashev kbolashev self-assigned this Jan 21, 2025
Copy link

dagshub bot commented Jan 21, 2025

@kbolashev
Copy link
Member Author

Also fixed:

  • Can't upload single files to regular repos too (oops)
  • Trying to upload the current local directory crashes

@kbolashev kbolashev merged commit a676a8a into master Jan 21, 2025
8 checks passed
@kbolashev kbolashev changed the title Bug: Can't upload single file to the repo bucket Bug: Can't upload single files Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant