Hey folks, Every-time i create a local branch, `K...
# touchlab-tools
s
Hey folks, Every-time i create a local branch,
KMMBridge
gives me this error. For branches with remote, it works fine. Is there any solution to this? using version, 0.3.2
Copy code
error: There is no tracking information for the current branch.
error: Please specify which branch you want to merge with.
error: See git-pull(1) for details.
error: 
error:     git pull <remote> <branch>
error: 
error: If you wish to set tracking information for this branch you can do so with:
error: 
error:     git branch --set-upstream-to=origin/<branch> shahroz/fix-remote-issues

Caused by: org.gradle.api.GradleException: Process failed: git pull --tags
	at co.touchlab.faktory.internal.ProcessHelperKt.procRun(ProcessHelper.kt:38)
	at co.touchlab.faktory.internal.ProcessHelperKt.procRunFailLog(ProcessHelper.kt:74)
	at co.touchlab.faktory.versionmanager.GitTagBasedVersionManager.getVersion(GitTagBasedVersionManager.kt:28)
	at co.touchlab.faktory.KMMBridgePlugin.configureArtifactManagerAndDeploy(KMMBridge.kt:104)
	at co.touchlab.faktory.KMMBridgePlugin.access$configureArtifactManagerAndDeploy(KMMBridge.kt:31)
	at co.touchlab.faktory.KMMBridgePlugin$apply$$inlined$with$lambda$1.execute(KMMBridge.kt:51)
	at co.touchlab.faktory.KMMBridgePlugin$apply$$inlined$with$lambda$1.execute(KMMBridge.kt:31)
k
Can you post what command you're running and a little more detail on what you're trying to do? The default publishing behavior does some stuff with git. We are evaluating ways to disable that or change how it works. SPM versions with tags, though, which makes the process somewhat complex
s
No command, I created a branch add KMMBridge to it, everything works smoothly, created binaries and release they work too. But from that branch, if i create a new local branch, on gradle sync it starts giving me this error. If I push that branch remotely, everything starts working again.
Copy code
plugins {
    kotlin("multiplatform")
    kotlin("native.cocoapods")
    id("com.android.library")
    id("com.squareup.sqldelight")
    id("maven-publish")
    kotlin("plugin.serialization") version "1.7.20"
    id("co.touchlab.faktory.kmmbridge") version "0.3.2"
}

kmmbridge {
    githubReleaseArtifacts()
    githubReleaseVersions()
    spm()
    versionPrefix.set("0.1")
}
k
Found it. We did a critical fix for another problem that inadvertently caused this. The testing we currently do wasn’t covering this case, unfortunately. Test coverage is being improved as we speak, but I’m also working on this now as it is rather critical: https://github.com/touchlab/KMMBridge/issues/160
s
Awesome, thanks for all the effort.
k
s
@kpgalligan sorry, getting back to this. Just bumped the version and grade doesnt seem to sync. Gradle does sync with
0.3.2
tried clearing the cache and everything, Do we need to add anything extra to make
0.3.3
to work?
Copy code
Gradle sync failed: Unable to find method ''org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.android(org.gradle.api.Action)''
				'org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.android(org.gradle.api.Action)'
				Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
				Re-download dependencies and sync project (requires network)
				The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
				Stop Gradle build processes (requires restart)
				Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
				In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java pro... (show balloon)
k
That looks like an Android thing. If it’s coming from KMMBridge, it’s possible that we have a newer dependency on Kotlin Gradle, but we don’t touch android directly in the plugin.
s
Fair enough, will try bumping/downgrading the AGP.