.version file is not created for the current project with --no-skip-current
- carthage install method: [ ] .pkg, [ ] homebrew, [ ] source
-
which carthage:/usr/local/bin/carthage -
carthage version: 0.31.2 -
xcodebuild -version:Build version 9F1027a - Are you using
--no-build? No - Are you using
--no-use-binaries? No - Are you using
--use-submodules? No - Are you using
--cache-builds? Yes - Are you using
--new-resolver? Yes
Cartfile 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:
- carthage install method: [ ] .pkg, [x] homebrew, [ ] source
-
which carthage:/usr/local/bin/carthage -
carthage version: 0.32.0 -
xcodebuild -version:N/A - Are you using
--no-build? No - Are you using
--no-use-binaries? No - Are you using
--use-submodules? No - Are you using
--cache-builds? Yes - Are you using
--new-resolver? No
Cartfile n/a Carthage Output n/a
Steps
- git clone https://github.com/ReactiveX/RxSwift.git
Actual outcome
- When running
carthage build --no-skip-current --platform iOS --cache-buildtheCarthage/Build/directory is created but the content of it shows no version file. I only see theiOSsub-directory with the content of the RxSwift artefacts. Where should one be able to locate the version? - I noticed in the original ticket that
--new-resolveris set toYesbutcarthage builddoes 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.