Package Details: diffsitter 0.9.0-1

Git Clone URL: https://aur.archlinux.org/diffsitter.git (read-only, click to copy)
Package Base: diffsitter
Description: Tree-sitter based AST diff tool
Upstream URL: https://github.com/afnanenayet/diffsitter
Licenses: MIT
Submitter: lmartinez-mirror
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 1
Popularity: 0.000000
First Submitted: 2021-12-07 15:35 (UTC)
Last Updated: 2025-04-28 15:37 (UTC)

Latest Comments

autkin commented on 2025-11-19 17:30 (UTC) (edited on 2025-11-19 17:30 (UTC) by autkin)

Upstream git repo tags have no PGP signatures, except for nightly tag. And that one signature comes from github and a different key id.

So building fails with "SIGNATURE NOT FOUND" and apparently never worked (unless upstream overwrote tags) since a commit 1.5y ago https://aur.archlinux.org/cgit/aur.git/commit/?h=diffsitter&id=3ddd52137c0af7e1baf64dfa050a800767a906f2

I guess the changes committed were untested.

The workaround sadly is the following (one test fails on my machine):

diff --git a/PKGBUILD b/PKGBUILD
index 446a6d5..0b4f091 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,9 +12,9 @@ depends=(tree-sitter)
 makedepends=(git cargo)
 checkdepends=(tree-sitter-cpp tree-sitter-python tree-sitter-rust)
 options=('!lto')
-source=(git+${url}.git?signed#tag=v${pkgver})
+_tag=500675d90eea2b7b2ec931404b86d88b248b553b # git rev-parse "v$pkgver"
+source=(git+${url}.git#tag=${_tag})
 sha512sums=('1eed90e0308bf1ebbb858b516b92338226777ec788c4f89336c00f9b58623c8c42bc799e54ea3399930f09fe3398a4ebc9ee00494ef72e0376849b749bdbccd8')
-validpgpkeys=('1C519E4FEF5757BFB30C636494EEFE1FD178056B') # Afnan Enayet <afnan@afnan.io>

 prepare() {
   cd ${pkgname}
@@ -31,7 +31,7 @@ build() {
 check() {
   export RUSTUP_TOOLCHAIN=stable
   cd ${pkgname}
-  cargo test --frozen --no-default-features --features dynamic-grammar-libs
+  #cargo test --frozen --no-default-features --features dynamic-grammar-libs
 }

 package() {

flying-sheep commented on 2023-03-09 10:06 (UTC)

I get errors when the tests are run

Snapshot file: src/snapshots/diffsitter__tests__medium_cpp_true.snap
Snapshot: medium_cpp_true
Source: src/main.rs:345
-old snapshot
+new results
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
diff_hunks
────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  116   116 │                                     end_position: Point {
  117   117 │                                         row: 43,
  118   118 │                                         column: 5,
  119   119 │                                     },
  120       │-                                    kind_id: 420,
        120 │+                                    kind_id: 391,
  121   121 │                                 },
  122   122 │                                 Entry {
  123   123 │                                     reference: {Node namespace_identifier (43, 4) - (43, 7)},
  124   124 │                                     text: "t",