apple / swift-argument-parser

Straightforward, type-safe argument parsing for Swift
Apache License 2.0
3.31k stars 311 forks source link

v 1.1.4 fails to build with SPM after xcode 14.1 update #517

Open sonic555gr opened 1 year ago

sonic555gr commented 1 year ago

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

Steps to Reproduce

using

.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

.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
sonic555gr commented 1 year ago

Downgrading to 1.1.3 has solved the issue.

rauhul commented 1 year ago

I think this is an SPM issue, the SAP git tree certainly has 9f39744e025c7d377987f30b03770805dcb0bcd1:

commit 9f39744e025c7d377987f30b03770805dcb0bcd1 (tag: 1.1.4)
Author: Rauhul Varma <rauhul@users.noreply.github.com>
Date:   Fri Aug 26 20:30:47 2022 -0700

    Update changelog for 1.1.4 release (#478)

Do you mind trying to use 1.1.4 in a scratch area and update here if works/still does not.

sonic555gr commented 1 year ago

Hello, you need to give me a couple of days on this, I will update you ASAP.

MaxDesiatov commented 6 months ago

Hi @sonic555gr, is this issue still reproducible for you?