Package Details: ktfmt 0.61-1

Git Clone URL: https://aur.archlinux.org/ktfmt.git (read-only, click to copy)
Package Base: ktfmt
Description: A program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions
Upstream URL: https://github.com/facebook/ktfmt
Licenses: Apache-2.0
Submitter: someone5678
Maintainer: someone5678
Last Packager: someone5678
Votes: 1
Popularity: 0.25
First Submitted: 2024-12-11 09:46 (UTC)
Last Updated: 2025-12-31 00:50 (UTC)

Dependencies (2)

Required by (0)

Sources (3)

Latest Comments

someone5678 commented on 2025-12-31 00:46 (UTC)

@Inc44 Thanks for the report! sun-misc-unsafe-memory-access=allow tag is removed with 0.60-2.

Inc44 commented on 2025-12-28 05:23 (UTC)

openjdk version "21.0.9" 2025-10-21
OpenJDK Runtime Environment (build 21.0.9+10)
OpenJDK 64-Bit Server VM (build 21.0.9+10, mixed mode, sharing)
Unrecognized option: --sun-misc-unsafe-memory-access=allow
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Remove --sun-misc-unsafe-memory-access=allow \ from ktfmt file to fix the issue. Modification was tested and confirmed functional.

jakobhellermann commented on 2025-10-09 06:57 (UTC)

The package currently fails to build, because the tag 0.58 it tries to download the LICENSE from does not exist, it has to be v0.58. I don't know if they recently renamed their tags to include the v.

Anyways, this patch fixes it:

diff --git a/PKGBUILD b/PKGBUILD
index 26109a7..969c4f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@ depends=('java-runtime' 'bash')
 source=(
   "https://repo1.maven.org/maven2/com/facebook/$pkgname/$pkgver/$pkgname-$pkgver-with-dependencies.jar"
   "$pkgname"
-  "https://raw.githubusercontent.com/facebook/$pkgname/refs/tags/$pkgver/LICENSE"
+  "https://raw.githubusercontent.com/facebook/$pkgname/refs/tags/v$pkgver/LICENSE"
 )
 sha256sums=('0369a4351367b0de2374b0f1c3962ef7d5d222a4bc58d7197d06948d46e4bea5'
             '62228af9300c9ee416aeef97fb589a91ddcd321e6b262e5e5c0924d26cb4ef52'