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

Broken globbing when directories have/do not have subdirectories #44

Open
p0deje opened this issue Dec 22, 2014 · 2 comments
Open

Broken globbing when directories have/do not have subdirectories #44

p0deje opened this issue Dec 22, 2014 · 2 comments

Comments

@p0deje
Copy link

p0deje commented Dec 22, 2014

I have the following configuration:

{  
  "features/support/lib/pages/**/regions/*_region.rb": {"type": "region"}
}

And the directory/file structure:

├── platform
│   ├── regions
│   │   ├── activity
│   │   │   └── activity_region.rb
│   │   ├── jobs
│   │   │   ├── assign_developer_region.rb
│   │   │   ├── candidates_region.rb
│   │   │   ├── # etc in subdirectories
├── public
│   ├── regions
│   │   ├── authors_region.rb
│   │   ├── blog_subscribe_region.rb
│   │   ├── # etc with no subdirectories

Projections for region type are populated only from public/ directory. Docs say nothing about this case so I'm not sure how to configure it to include files from both platform/ and public/ dirs.

@tpope
Copy link
Owner

tpope commented Dec 22, 2014

The issue is the platform directory has an extra level of nesting under regions, which is not supported by *. If these are the only two paths you care about, you could just add features/support/lib/pages/platform/regions/*_region.rb and features/support/lib/pages/public/regions/*_region.rb as separate paths.

@p0deje
Copy link
Author

p0deje commented Dec 22, 2014

But in this case I'm going to miss platform/public part in the list.

I think there should be some way to achieve the desired behavior. I can try to add it if you can tell me where to look at and how projection should look like.

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

No branches or pull requests

2 participants