Handle better the case when there is a conflict between marker publications and the librarian-generated ones
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 18
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Librarian.module(project) // tries to generate the markers
gratatouille {
// creates a publication
pluginMarker("com.apollographql.mock")
}
Later fails with:
Execution failed for task ':librarianStaticContent' (registered in build file 'build.gradle.kts').
> A failure occurred while executing com.gradleup.librarian.gradle.internal.task.GenerateStaticContentTaskWorkAction
> /home/runner/work/apollo-mock/apollo-mock/gradle-plugin/build/gtask/librarianGenerateMarkerFiles/output/com/apollographql/mock/com.apollographql.mock.gradle.plugin/0.0.0-SNPASHOT/com.apollographql.mock.gradle.plugin-0.0.0-SNPASHOT.pom -> /home/runner/work/apollo-mock/apollo-mock/build/static/m2/com/apollographql/mock/com.apollographql.mock.gradle.plugin/0.0.0-SNPASHOT/com.apollographql.mock.gradle.plugin-0.0.0-SNPASHOT.pom: The destination file already exists.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the conflict using the Librarian.module and pluginMarker example in the issue, then start with build.gradle.kts and the GenerateStaticContentTaskWorkAction stack-trace entry. Trace how librarian-generated marker publications are written and define the expected behavior when a marker already exists; done means this case no longer fails with a destination-file-exists error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100