apple / apple/swift-argument-parser
v 1.1.4 fails to build with SPM after xcode 14.1 update
- Dominant language
- Swift
- Stars
- 3.8k
- Forks
- 411
- Avg merge
- 7d 14h
- Merged PRs (30d)
- 15
Description
I have argument parser as a dependancy on a Library.
After updating to xcode 14.1
`swift build` fails
version 1.1.4
swift version 5.7
### Checklist
- [ ] If possible, I've reproduced the issue using the `main` branch of this package
- [X] I've searched for [existing GitHub issues](https://github.com/apple/swift-argument-parser/issues)
### Steps to Reproduce
using
``` swift
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0")
```
tries to install version 1.1.4
fails with error.
```
error: Couldn’t check out revision ‘9f39744e025c7d377987f30b03770805dcb0bcd1’:
fatal: reference is not a tree: 9f39744e025c7d377987f30b03770805dcb0bcd1
```
problem doesn't occur if I set the version
``` swift
.package(url: "https://github.com/apple/swift-argument-parser", .exact("1.1.3"))
```
### Expected behavior
Library should build successfully without errors
### Actual behavior
```
error: Couldn’t check out revision ‘9f39744e025c7d377987f30b03770805dcb0bcd1’:
fatal: reference is not a tree: 9f39744e025c7d377987f30b03770805dcb0bcd1
```
Contributor guide
Research direction
Start by reproducing the failure with the Package.swift dependency using `swift build`, then compare resolution of versions 1.1.3 and 1.1.4 and inspect the reported revision checkout error. Done means the dependency declared from version 1.0.0 resolves and the library builds successfully without the missing-revision error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, swift
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100