Skip to content

chore: sync upstream PR #8739 - fix(cli): fix name collisions in swift-package-manager - #265

Open
riderx wants to merge 3 commits into
plusfrom
sync/upstream-pr-8739
Open

riderx wants to merge 3 commits into
plusfrom
sync/upstream-pr-8739

Conversation

@riderx

@riderx riderx commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Upstream PR Sync

This PR syncs changes from an external contributor's PR on the official Capacitor repository.

Original PR

  • PR: #8739
  • Title: fix(cli): fix name collisions in swift-package-manager
  • Author: @markemer

Automation

  • CI will run automatically
  • Manual review is required before merging
  • Auto-merge is disabled until an equivalent review gate is available
  • A new release will be published automatically

Synced from upstream by Capacitor+ Bot


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:05:06.369730Z e4091a8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8635b3dd-4077-4dc0-85ba-54e96b96d811
Commits

Reviewing files that changed from the base of the PR and between 4f9459d and e4091a8.

Files selected for processing: 8

  • CHANGELOG.md
  • android/CHANGELOG.md
  • cli/CHANGELOG.md
  • cli/src/util/capacitor-package.ts
  • cli/test/capacitor-package.spec.ts
  • core/CHANGELOG.md
  • ios-spm-template/App/CapApp-SPM/Package.swift
  • ios/CHANGELOG.md
  • Autofix · 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

@github-actions

Copy link
Copy Markdown

Beta npm build

Maintainers can publish one Capacitor Plus workspace package from this PR to npm for fast testing.

Comment /publish-beta <package> after the PR checks are green.

Examples:

/publish-beta core
/publish-beta cli
/publish-beta @capacitor-plus/core

If exactly one workspace package changed, /publish-beta without a package will use that package.

Packages:

  • core (@capacitor-plus/core)
  • cli (@capacitor-plus/cli)
  • android (@capacitor-plus/android)
  • ios (@capacitor-plus/ios)

The workflow will:

  • publish a prerelease package on the beta tag
  • update this comment with the install command

Security note: beta publish is only enabled for branches inside this repository.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58a125bdc6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const SOURCE_PACKAGE_URL = 'https://github.com/ionic-team/capacitor';
export const SOURCE_PACKAGE_IDENTITY = 'capacitor';
const SOURCE_PACKAGE_NAME = new RegExp(`name:\\s*"${SOURCE_PACKAGE_IDENTITY}"`);
export const SOURCE_PACKAGE_IDENTITY = 'capacitor-ios';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve Cordova URL conversion when renaming the package

For Cordova plugins shipping their own Package.swift with an unnamed dependency on https://github.com/apache/cordova-ios.git, generateCordovaPackageFile in cli/src/util/cordova-ios.ts replaces cordova-ios with SOURCE_PACKAGE_IDENTITY before calling the dependency rewriter. This rename now produces https://github.com/ionic-team/capacitor-ios.git, which neither the source URL matcher nor the pinned-name matcher recognizes, so the manifest retains the remote dependency instead of using the installed Capacitor package. This breaks SPM dependency resolution for those plugins. Keep the URL conversion independent of the new package reference name, or rewrite the original Cordova dependency directly.

AGENTS.md reference: AGENTS.md:L65-L65

Useful? React with 👍 / 👎.

Comment thread CHANGELOG.md
Comment on lines 214 to 215





## [8.6.5](https://github.com/Cap-go/capacitor-plus/compare/8.6.4...8.6.5) (2026-11-11)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Revert the unrelated generated changelog edits

This commit removes spacing from the root and four platform/package changelogs, although the change concerns Swift package dependency rewriting. AGENTS.md explicitly reserves changelog management for CI/CD and prohibits manual edits. Restore these files and leave any changelog regeneration to the release workflow.

AGENTS.md reference: AGENTS.md:L75-L77

Useful? React with 👍 / 👎.

@riderx
riderx force-pushed the sync/upstream-pr-8739 branch from 58a125b to b88967f Compare November 22, 2026 06:02
@riderx
riderx force-pushed the sync/upstream-pr-8739 branch from b88967f to e4091a8 Compare November 23, 2026 06:03
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