Skip to content

Use CocoaPods source tags without changing package versions - #207

Open
codewithfourtix wants to merge 2 commits into
aboutcode-org:masterfrom
codewithfourtix:fix-cocoapods-source-tag-version
Open

Use CocoaPods source tags without changing package versions#207
codewithfourtix wants to merge 2 commits into
aboutcode-org:masterfrom
codewithfourtix:fix-cocoapods-source-tag-version

Conversation

@codewithfourtix

Copy link
Copy Markdown

Use the podspec's source tag when constructing GitHub archive URLs, including tags without a v prefix. Keep that tag separate from the CocoaPods package version.

Adds tests for prefixed, custom, and omitted source tags.

Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
Copilot AI lite review requested due to automatic review settings September 5, 2026 17:22

Copilot AI 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.

🟢 Approval recommended

The implementation correctly separates the podspec source tag from the CocoaPods package version and includes targeted tests for the intended cases.

Pull request overview

This PR updates CocoaPods package construction so that GitHub archive download URLs use the podspec’s declared source.tag (including non-v-prefixed tags), while keeping the CocoaPods package version unchanged.

Changes:

  • Use source["tag"] (when present) to build GitHub archive/refs/tags/... URLs, falling back to the CocoaPods version tag when omitted.
  • Add parametrized tests covering v-prefixed tags, custom tags, and missing source.tag.
File summaries
File Description
src/fetchcode/package_util.py Uses podspec source.tag for GitHub archive URL construction without altering the package version.
tests/test_cocoapods_source_tags.py Adds coverage to ensure version preservation and correct download URL tag selection.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
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