Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
sonic555gr opened this issue Nov 8, 2022 · 4 comments
Open
1 of 2 tasks

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

sonic555gr opened this issue Nov 8, 2022 · 4 comments

Comments

@sonic555gr
Copy link

sonic555gr commented Nov 8, 2022

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
  • I've searched for existing GitHub issues

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
Copy link
Author

Downgrading to 1.1.3 has solved the issue.

@rauhul
Copy link
Contributor

rauhul commented Nov 21, 2022

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
Copy link
Author

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

@MaxDesiatov
Copy link
Member

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

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

No branches or pull requests

3 participants