Carthage: .version file is not created for the current project with --no-skip-current

Created on 1 Nov 2018  路  6Comments  路  Source: Carthage/Carthage

  • 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

enhancement

Most helpful comment

2 birds with one stone. Off I go!

All 6 comments

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

Actual outcome

  • When running 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?
  • I noticed in the original ticket that --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.

Was this page helpful?
0 / 5 - 0 ratings