Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Fix issue with an ignored name being a file. #90

Merged
merged 3 commits into from
Sep 6, 2018
Merged

Fix issue with an ignored name being a file. #90

merged 3 commits into from
Sep 6, 2018

Conversation

tfeng
Copy link
Contributor

@tfeng tfeng commented Sep 6, 2018

When packr is run in a git submodule, where .git is a file containing just a line

gitdir: ../.git/modules/my-sub-module

it causes an error during filepath.Walk, because it tries to return SkipDir, whereas the entry is a file but not a dir. In that case, we should instead return nil, so that the walk will move on to another file. If it returns SkipDir, the entire walk will fail with an error, and subsequent files and/or directories will all be ignored.

@vito
Copy link

vito commented Sep 6, 2018

Just ran into this myself, thanks for submitting a PR!

@markbates markbates merged commit 2b3e29d into gobuffalo:master Sep 6, 2018
@markbates
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants