Skip to content

Commit 2372c1c

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Fix ktfmt symbolic links issues (#52721)
Summary: There are symbolic link issues with ktfmt after building the rn-tester. Putting back this patch to address that issue. ## Changelog: [INTERNAL] - Fix ktfmt symbolic links issues Pull Request resolved: #52721 Test Plan: 1. Build the rn-tester: ```sh yarn android ``` 2. Unformat a file manually and then: ```sh yarn lint-kotlin-check yarn lint-kotlin ``` Reviewed By: cipolleschi Differential Revision: D78647797 Pulled By: cortinico fbshipit-source-id: b2f230741466be0a95c21a9b98f3d15b865c2b83
1 parent 3ea2f62 commit 2372c1c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,11 @@ allprojects {
157157
com.ncorti.ktfmt.gradle.tasks.KtfmtCheckTask::class,
158158
com.ncorti.ktfmt.gradle.tasks.KtfmtFormatTask::class)
159159
.forEach { tasks.withType(it) { exclude(excludePatterns) } }
160+
161+
// Disable the problematic ktfmt script tasks due to symbolic link issues in subprojects
162+
afterEvaluate {
163+
listOf("ktfmtCheckScripts", "ktfmtFormatScripts").forEach {
164+
tasks.findByName(it)?.enabled = false
165+
}
166+
}
160167
}

0 commit comments

Comments
 (0)