diff --git a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciRegistryDataTask.kt b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciRegistryDataTask.kt index 613ca82e..fab616d7 100644 --- a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciRegistryDataTask.kt +++ b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciRegistryDataTask.kt @@ -29,7 +29,7 @@ abstract class OciRegistryDataTask : OciImagesInputTask() { val repositoriesDirectory = registryDataDirectory.resolve("repositories").createDirectory() for ((digest, layer) in digestToLayer) { - blobsDirectory.resolveDigestFile(digest).createLinkPointingTo(layer.toPath()) + blobsDirectory.resolveDigestFile(digest).createSymbolicLinkPointingTo(layer.toPath()) } for ((resolvedComponent, imageReferences) in resolvedComponentToImageReferences) { writeImage(resolvedComponent, imageReferences, blobsDirectory, repositoriesDirectory)