which carthage: /usr/local/bin/carthagecarthage version: 0.31.2xcodebuild -version: Build version 9F1027a--no-build? No--no-use-binaries? No--use-submodules? No--cache-builds? Yes--new-resolver? YesCartfile
n/a
Carthage Output
n/a
Actual outcome
When running carthage build --no-skip-current .version files are generated for the dependencies but not for the current project
Expected outcome
.version file is generated for the current project
Implementation suggestion
To extract the version all that needs to be done is:
git describe --exact-match `git rev-parse HEAD`
In case of no match just take the HEAD commitish
Would appreciate if anyone could give their opinion @mdiep @ikesyo @jdhealy 馃憤
Sounds like a reasonable thing to support. 馃憤
Looks like this is dupe of #1846馃檭
2 birds with one stone. Off I go!
@blender could you tell me what the status is of this ticket? The work seems to have been merged and I've been trying to test it out on the latest release but it does not seem to create the version file for me.
My setup:
which carthage: /usr/local/bin/carthagecarthage version: 0.32.0xcodebuild -version: N/A--no-build? No--no-use-binaries? No--use-submodules? No--cache-builds? Yes--new-resolver? NoCartfile
n/a
Carthage Output
n/a
Steps
Actual outcome
carthage build --no-skip-current --platform iOS --cache-build the Carthage/Build/ directory is created but the content of it shows no version file. I only see the iOS sub-directory with the content of the RxSwift artefacts. Where should one be able to locate the version?--new-resolver is set to Yes but carthage build does not allow this flag as input and I'd also not expect it to resolve when I invoke this command unless I misunderstand.The work is merged but the release doesn't include it. You have to build carthage from HEAD.
Most helpful comment
2 birds with one stone. Off I go!