which carthage: /usr/local/bin/carthagecarthage version: 0.31.0xcodebuild -version: Xcode 10.0 Build version 10A255--no-build? No--no-use-binaries? No--use-submodules? No--cache-builds? No--new-resolver? NoCartfile
github "Square/Valet" "3.2.0"
Carthage Output
*** Checking out Valet at "3.2.0"
A shell task (/usr/bin/env git clone --quiet ../../dfed/XCTest-watchOS.git /Users/dan_federman/Documents/source/valettest/Carthage/Checkouts/Valet/Tests/XCTest-watchOS) failed with exit code 128:
fatal: repository '../../dfed/XCTest-watchOS.git' does not exist
Actual outcome
Carthage fails to clone repository that has a submodule defined with relative path.
Expected outcome
Carthage should be able to translate ../../dfed/XCTest-watchOS.git from the repository https://github.com/square/valet.git into https://github.com/dfed/XCTest-watchOS.git.
Relative GitHub paths in submodules allow the submodule to be checked out via the same mechanism as the original repo; if the top-level repo is checked out with ssh, the submodule will be checked out with ssh – similarly, if the top-level repo is checked out with https, the submodule will be checked out with https. This is useful functionality that Carthage prevents us from taking advantage of.
Note I was able to fix this issue by making the git submodule explicitly point to the https clone. We were turned onto this issue when a user of Valet pointed out that our 3.2.0 release failed to clone via Carthage.
Note that Carthage will work with the Cartfile:
github "Square/Valet" "3.2.1"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is still relevant.
Indeed! Do you want to give this a shot @dfed ? It's very easy to get started
Solid conscription effort @blender 😉. Yeah I can take this on, but to be honest I likely won't have time until December. If you're cool with that kind of lag (which I guess is better than closing outright), let's assign this issue to me.
Any help is appreciated!
Most helpful comment
Solid conscription effort @blender 😉. Yeah I can take this on, but to be honest I likely won't have time until December. If you're cool with that kind of lag (which I guess is better than closing outright), let's assign this issue to me.