yonaskolb / yonaskolb/XcodeGen

Support glob for `include` spec paths

Open
#864 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

At my company we've recently moved our project to use per-framework-defined spec files as we'd like to define these within the frameworks themselves and their definitions be independent of the rest of the project (excluding dependencies of course). The reasoning for this is that we find this approach to be more manageable for a large, modularized-project where it can currently become tricky to find where a framework definition may be placed.

To my knowledge it seems you can not use glob style paths in the include: directive. As a workaround we've created a script that finds the paths for these subspecs and generates/includes each of them. While this works (albeit with a few headaches due to relative/absolute paths not working as I'd expect with nested include: calls), it'd be really nice if there was first-party support for glob style include: paths.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the include: directive resolves paths, including the nested include: behavior described in the issue. Done means glob-style include paths are supported with predictable relative and absolute path handling, including for nested includes; no specific files or tests are named.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.