Håkon Pettersen
11/08/2023, 3:09 PM> Task :updatePackageSwift FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':updatePackageSwift'.
> java.io.FileNotFoundException: /Package.swift (Read-only file system)
yml-files posted in the thread above. Anyone familiar with this issue?kpgalligan
11/08/2023, 3:27 PMkpgalligan
11/08/2023, 3:33 PMPackage.swift
path is pointing at your file system root
/Package.swift (Read-only file system)
By default, KMMBridge reads your git repo root with git to find the root. If that fails (no git installed or not a git repo), it should write a warning and produce ./Package.swift
. I'm curious about your kmmbridge
block. The only way I can think of that you ran into this is :
kmmbridge {
spm("")
// Etc
}
Håkon Pettersen
11/08/2023, 6:11 PMkmmbridge {
mavenPublishArtifacts()
spm()
}
Stack trace here:kpgalligan
11/08/2023, 6:29 PMspm("./")
, although you shouldn't need to.kpgalligan
11/08/2023, 6:32 PMBuild Main
you'll have issues with the autoversion, but one thing at a time I guess.Håkon Pettersen
11/08/2023, 6:44 PMkpgalligan
11/08/2023, 6:51 PMautoversion-finishrelease
. autoversion-tagmarker-cleanup
is only used to clean up marker tags, which you're not creating anymore, and you're also not using fetch-tags: true
on checkout. autoversion-tagmarker-cleanup
won't fail, but it doesn't do anything. Also Delete branch
is there, but it's never created.Håkon Pettersen
11/16/2023, 8:27 AMspm("./")
resolved the /Package.swift (Read-only file system)
issue. We've also streamlined our workflow by removing unnecessary auto-versioning steps. Everything is functioning as expected now. KMMBridge is working like a charm, thanks for an amazing tool @kpgalligan!