Skip to content

feat(cli): oa check reads Package.resolved, pubspec.lock, renv.lock and Podfile.lock - #543

Merged
M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/oa-check-swift-pub-cran-cocoapods
Dec 1, 2026
Merged

M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:feat/oa-check-swift-pub-cran-cocoapods

Conversation

@orcamedia

Copy link
Copy Markdown
Contributor

The Swift, Pub, CRAN and CocoaPods formats of #533 had no lockfile oa check could read.

  • Package.resolved: registry pins (scope.name); git pins skipped. pubspec.lock: hosted packages; SDK, path and git skipped; --no-dev drops direct dev dependencies. renv.lock: packages from a repository (not GitHub, Bioconductor, URL or local); requirers from Requirements. Podfile.lock: by pod (a subspec is its pod); EXTERNAL SOURCES skipped; requirers from PODS.
  • --fetch requests what each client does: the Swift release list, the pub package document, CocoaPods-version.yml then each pod's shard. A CRAN proxy has no Versions hook, so its answers stay unknown whatever is cached: --fetch refuses an renv.lock rather than warming nothing.
  • Fixtures, parse/reject/edge/KindOf tests, a fuzz target per lockfile; FuzzMetadataPath covers the new kinds and their /repos// prefixes. docs/integrations/ci.md and the CLI reference updated.

Checks: golangci-lint v2.15.0 (0 issues), make deadcode, make docs-check, TestBinaryImportGraphs, go test -race for pkg/lockfile, internal/oacli and cmd/docgen, short fuzz runs.

🤖 Generated with Claude Code

…nd Podfile.lock

The Swift, Pub, CRAN and CocoaPods formats of openartifact#533 had no lockfile oa check
could read.

- Package.resolved: the registry pins (scope.name, as the registry matches
  them); git pins are left out. No requirers, no dev dependencies.
- pubspec.lock: hosted packages; SDK, path and git ones are left out. A
  direct dev dependency is Dev, so --no-dev works. No requirers.
- renv.lock: packages installed from a repository; GitHub, GitLab,
  Bioconductor, URL and local ones are left out. Requirers from
  Requirements (renv 1.0 and later).
- Podfile.lock: by pod (a subspec is its pod, which does not require
  itself); pods under EXTERNAL SOURCES are left out. Requirers from PODS.

--fetch requests what each client does: the Swift release list, the pub
package document, and for CocoaPods CocoaPods-version.yml then the shard
of each pod in the repository's own sharding. A CRAN proxy has no version
list (no Versions hook), so its answers stay unknown whatever is cached:
--fetch refuses an renv.lock instead of warming nothing.

Fixtures, parse, reject, edge and KindOf tests, one fuzz target per
lockfile; the metadata path fuzz target covers the new kinds and their
/repos/<format>/ prefixes. docs/integrations/ci.md and the CLI reference
updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@M0Rf30 M0Rf30 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Tested subspec dedup and CRAN source filtering; fetch paths match the swift/pub routes.

@M0Rf30
M0Rf30 merged commit 762a9dd into openartifact:main Dec 1, 2026
23 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