Package Details: swift-format 0.50300.0-1

Git Clone URL: https://aur.archlinux.org/swift-format.git (read-only, click to copy)
Package Base: swift-format
Description: Formatting technology for Swift source code
Upstream URL: https://github.com/apple/swift-format
Licenses: Apache
Submitter: ShinoYasx
Maintainer: ShinoYasx
Last Packager: ShinoYasx
Votes: 1
Popularity: 0.000000
First Submitted: 2020-09-27 00:23 (UTC)
Last Updated: 2020-09-27 00:31 (UTC)

Required by (0)

Sources (1)

Latest Comments

JisuWoniu commented on 2024-01-25 07:14 (UTC)

Apply this patch to use the latest build, and fix the _InternalSwiftSyntaxParser error.

diff --git a/PKGBUILD b/PKGBUILD
index 12869c7..6006087 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Hugo Haldi <hugo dot haldi at gmail dot com>

 pkgname=swift-format
-pkgver=0.50300.0
+pkgver=509.0.0
 pkgrel=1
 pkgdesc="Formatting technology for Swift source code"
 url="https://github.com/apple/swift-format"
@@ -9,7 +9,7 @@ arch=('any')
 license=('APACHE')
 depends=('swift-language')
 source=("swift-format-${pkgver}.tar.gz::https://github.com/apple/swift-format/archive/${pkgver}.tar.gz")
-sha256sums=('1bd9916234e2f7c525694d1a48865b8e6f753c4bae26c4acd8ee55885c87ae29')
+sha256sums=('3041b470f6de7c156cf5898bc59645073c29def8dea66f9f356681163cae371e')

 prepare() {
     rm -rf swift-format

MikeWalrus commented on 2023-11-14 10:09 (UTC)

Please add git to makedepends.

WalterSmuts commented on 2023-09-12 14:39 (UTC)

I'm getting what looks like dependency errors when compiling:

/home/walter/.cache/yay/swift-format/src/swift-format/.build/checkouts/swift-syntax/Sources/SwiftSyntax/SyntaxParser.swift:17:8: error: no such module '_InternalSwiftSyntaxParser'
import _InternalSwiftSyntaxParser