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

Memory.ReadDir() should return an error when path isn't found. #38

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

weberc2-tempus
Copy link
Contributor

Presently, it returns an empty list of files and a nil error value. This PR aims to fix #37

Copy link

@tiagomatic tiagomatic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

memfs/memory_test.go Outdated Show resolved Hide resolved
memfs/memory_test.go Outdated Show resolved Hide resolved
@weberc2-tempus
Copy link
Contributor Author

Looks like the tests are failing due to a websocket timeout? I don't think that would be related to my changes--would it be possible to rerun the tests and see if it's a fluke?

memfs/memory_test.go Outdated Show resolved Hide resolved
@pjbgf
Copy link
Member

pjbgf commented Nov 17, 2023

Looks like the tests are failing due to a websocket timeout? I don't think that would be related to my changes--would it be possible to rerun the tests and see if it's a fluke?

@weberc2-tempus It was a fluke. I re-run it and it now passed. We only need to fix the windows issue.

Please squash your commits.

memfs/memory_test.go Outdated Show resolved Hide resolved
Presently, it returns an empty list of files and a `nil` error value. This PR
aims to fix go-git#37.
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @weberc2-tempus! 🏆

@pjbgf pjbgf merged commit d23351b into go-git:master Nov 20, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

memfs ReadDir() doesn't return an error when the directory doesn't exist
3 participants