[Bug 276116] Mk/Uses/cargo.mk: Build fails on the github.com/nvarner/typst-lsp project: failed to parse manifest

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 05 Jan 2024 13:00:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276116

Tobias Kortkamp <tobik@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           Keywords|                            |needs-patch

--- Comment #1 from Tobias Kortkamp <tobik@freebsd.org> ---
For the record the full error message is:

===>   Updating Cargo.lock
error: failed to parse manifest at
`/wrkdirprefix/usr/ports/lang/typst-lsp/work/typst-lsp-0.12.1/Cargo.toml`

Caused by:
  could not load Cargo configuration

Caused by:
  could not parse TOML configuration in
`/wrkdirprefix/usr/ports/lang/typst-lsp/work/.cargo/config.toml`

Caused by:
  TOML parse error at line 11, column 1
     |
  11 | typst-syntax = { path =
'/wrkdirprefix/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-syntax'
}
     | ^
  duplicate key `typst-syntax` in table
`patch.https://github.com/typst/typst.git`


and we have

[patch.'https://github.com/typst/typst.git']
typst-syntax = { path =
'/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-syntax' }
typst-syntax = { path =
'/usr/ports/lang/typst-lsp/work/typst-0.10.0/crates/typst-syntax' } 

because typst-syntax appears with 2 different versions in CARGO_CRATES:

       
typst-syntax@git+https://github.com/typst/typst.git?tag=v0.7.0\#da8367e189b02918a8fe1a98fd3059fd11a82cd9
\
       
typst,typst-ide,typst-macros,typst-pdf,typst-syntax@git+https://github.com/typst/typst.git?tag=v0.10.0\#70ca0d257bb4ba927f63260e20443f244e0bb58c

This is probably not that easy to fix.

-- 
You are receiving this mail because:
You are on the CC list for the bug.