mergesort / Boutique

✨ A magical persistence library (and so much more) for state-driven iOS and Mac apps ✨
https://build.ms/boutique/docs
MIT License
920 stars 45 forks source link

Package failing to be fetched during CI/CD build #43

Closed JaidynBluesky closed 1 year ago

JaidynBluesky commented 1 year ago

Hey! I'm trying to configure automated deployment using Codemagic for my app which uses Boutique. However, the following error is being thrown on their build machine during the xcodebuild step:

xcodebuild: error: Could not resolve package dependencies:
Failed to clone repository git@github.com:mergesort/Boutique.git:
Cloning into bare repository '/Users/builder/Library/Developer/Xcode/DerivedData/XXXX-xxxx/SourcePackages/repositories/Boutique-5d5d00dc'
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

Clearly it's an authentication issue of some kind, but it's strange because I have no issues fetching the package when I build locally.

Just wondering if by any small chance you'd have an idea of what's going on :)

mergesort commented 1 year ago

Hey there @JaidynBluesky, I wish I had a better answer for you but I don’t think this is necessarily Boutique-related. I'm not particularly good at CI/CD, it's one of my weak spots as a developer mostly because I rarely have to work on it.

The only recent change has been merging #39 on main, but based on your error that shouldn't be related. In the style of have you tried turning it off and on again, have you tried removing Boutique and seeing if this happens with another Swift package? If the error happens with another package we can be sure that it's an issue with the dependency management tool chain rather than Boutique, and if the error does go away then perhaps it has something to do with Codemagic, your Padkage.swift, or something else configuration related. If all that doesn't work maybe you can post your Package.swift to see if that offers any clues.

Hope that helps!

JaidynBluesky commented 1 year ago

Hi Joe, sorry I forgot I opened this.

It's all good, it was just an SSH key that I didn't add to the config, everything is working great again.

Cheers!

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Joe Fabisevich @.> Sent: Thursday, January 12, 2023 9:07:55 PM To: mergesort/Boutique @.> Cc: Jaidyn Belbin @.>; Mention @.> Subject: Re: [mergesort/Boutique] Package failing to be fetched during CI/CD build (Issue #43)

Hey there @JaidynBlueskyhttps://github.com/JaidynBluesky, I wish I had a better answer for you but I don’t think this is necessarily Boutique-related. I'm not particularly good at CI/CD, it's one of my weak spots as a developer mostly because I rarely have to work on it.

The only recent change has been merging #39https://github.com/mergesort/Boutique/pull/39 on main, but based on your error that shouldn't be related. In the style of have you tried turning it off and on again, have you tried removing Boutique and seeing if this happens with another Swift package? If the error happens with another package we can be sure that it's an issue with the dependency management tool chain rather than Boutique, and if the error does go away then perhaps it has something to do with Codemagic, your Padkage.swift, or something else configuration related. If all that doesn't work maybe you can post your Package.swift to see if that offers any clues.

Hope that helps!

— Reply to this email directly, view it on GitHubhttps://github.com/mergesort/Boutique/issues/43#issuecomment-1380320238, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATRU6OZV4WDCLLT4LRJFWS3WR762XANCNFSM6AAAAAATWJ3K4A. You are receiving this because you were mentioned.Message ID: @.***>

mergesort commented 1 year ago

Glad to hear it's working!