Skip to content

Skip macro targets when generating products - #208

Merged
kabiroberai merged 2 commits into
xtool-org:mainfrom
pawlowskialex:main
Oct 6, 2026
Merged

kabiroberai merged 2 commits into
xtool-org:mainfrom
pawlowskialex:main

Conversation

@pawlowskialex

@pawlowskialex pawlowskialex commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

Currently, when using a package with macros like TCA the build fails with the following message.

Error: Could not find package containing product 'SwiftSyntaxMacros'

Summary by CodeRabbit

  • Bug Fixes
    • Package planning now skips macro targets when collecting resources and resolving dependencies. This prevents dependencies belonging to macro targets from being traversed as part of planning, while leaving dependency handling for other target types unchanged.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7f08d645-929b-40be-91e7-2eddd49e099d
📥 Commits

Reviewing files that changed from the base of the PR and between 6f87f8f and 0052212.

📒 Files selected for processing (1)
  • Sources/PackLib/Planner.swift
 _____________________
< Git gud or git out. >
 ---------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kabiroberai kabiroberai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

excuse the delay, missed this earlier. just tested and lgtm!

@kabiroberai
kabiroberai enabled auto-merge (squash) October 6, 2026 03:13
@kabiroberai
kabiroberai merged commit 491fe2f into xtool-org:main Oct 6, 2026
10 of 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.

2 participants