touchlab / KMMBridge

KMMBridge is a tool that helps publish Kotlin Multiplatform (KMP) Xcode binaries for use from Swift Package Manager (SPM) and CocoaPods.
https://touchlab.co/kmmbridge/
Apache License 2.0
358 stars 20 forks source link

0.3.2版本在git 1,8.3版本下,bulid报错 #156

Closed weijunfeng closed 1 year ago

weijunfeng commented 1 year ago

使用0.3.2版本时, 在git 1,8.3版本下,bulid报错

error: Fetching tags only, you probably meant: error: git fetch --tags

说是在git 2.0版以上才支持 git pull --tags, git版本是公司统一配置,无法更改

KatieGalvin commented 1 year ago

Google Translate: 0.3.2 version is under git 1,8.3 version, bulid reports an error When using version 0.3.2, under git 1,8.3 version, bulid reports an error

error: Fetching tags only, you probably meant: error: git fetch --tags

It is said that git pull --tags is only supported on git version 2.0 and above. The git version is the company's unified configuration and cannot be changed

kpgalligan commented 1 year ago

You'll need to use TimestampVersionManager or ManualVersionManager. According to git version history, 1.8.3 is almost 10 years old, so I don't think we're going to prioritize support for that.

Version 0.3.3 won't fail on that call, just give a warning, but publishing won't work properly if you're using a git tag based version manager: https://github.com/touchlab/KMMBridge/releases/tag/0.3.3.