-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tpl/os: Add filesystem option to ReadDir #9613
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
Conversation
|
Thanks for this -- the code looks great at first glance. I will need to understand and fix #9609 before I can merge this. But if I could ask for one change that would make this easier to review: Instead of creating one test function per variant, I suggest you combine them into one and separate the expectations by an identifier, e.g.: And if you create an inline template to print this, you get a pretty compact test. |
|
Thanks for the feedback, I've combined the tests so they are easier to read as suggested. I'm a little confused about the failing build, looks like it might have timed out. If you can approve the workflow, I'll look into it if it happens again. |
|
Updated test to include a check for composite archetype files. |
|
Had a go at adding docs for the new functionality. |
23d4552 to
8b4ecfd
Compare
Make ReadDir function variadic. Optional second param specifies FileSystem. The default if not specified remains work dir, to retain backwards compatibility. Fixes gohugoio#9604
|
@bep any interest in taking another look at this? |
|
This PR has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is my first contribution to this project, the issue was labelled as
[GoodFirstIssue]so I jumped in. As such, any feedback or guidance 💯 appreciated.Make ReadDir function variadic. Optional second param specifies FileSystem. The default if not specified remains work dir, to retain backwards compatibility.
I largely followed the breadcrumbs @bep left in the issue comments (thanks!). Things I'm not sure about:
osFixes #9604