Skip to content

Commit 9808c34

Browse files
cameroncookeclaude
andauthored
fix(ios): Pin SnapshotPreviews (#796)
Pin the `SnapshotPreviews` Swift package dependency to the semantic version range `0.13.0..<1.0.0` instead of tracking the upstream `main` branch. Tracking `main` meant each resolve could pull in unreviewed upstream changes, making builds non-reproducible and leaving snapshot tests vulnerable to breakage from dependency drift. Pinning to a version range keeps future updates explicit and reviewable while still allowing non-breaking upgrades within the 0.x line. Resolved revision moves from `ee693c3` (unversioned `main`) to `83131a5` (tag `0.13.0`). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 30434f9 commit 9808c34

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ios/HackerNews.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,9 @@
12711271
isa = XCRemoteSwiftPackageReference;
12721272
repositoryURL = "https://github.com/EmergeTools/SnapshotPreviews";
12731273
requirement = {
1274-
branch = main;
1275-
kind = branch;
1274+
kind = versionRange;
1275+
maximumVersion = 1.0.0;
1276+
minimumVersion = 0.13.0;
12761277
};
12771278
};
12781279
F48E9EC92D4D691600FD8B30 /* XCRemoteSwiftPackageReference "ETDistribution" */ = {

ios/HackerNews.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)