Typst: minimize external package dependencies to ameliorate third-party SSL issues

Aperta
#8,701 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
build-system, cli

Direzione di ricerca

No source file or test is named. Start by rendering the supplied minimal .qmd example in Typst and inspect how callout boxes generate the fontawesome import and package download. Done means the example renders without requiring the failing external package download or encountering the reported TLS certificate error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement typst
What would you like to do?

Report an issue on quarto.org

Description

Problem

When trying to render a document in the typst format, callout boxes lead to an error because the fontawesome package is ostensibly missing. I tried to install the package but haven't found a way to achieve this.

Any suggestions to fix this would be very much appreciated!

Details

Simple qmd file to replicate the error:
---
title: "Untitled"
format:
  typst:
    papersize: a4
---

## Slide 1

Bla bla bla. Bla bla bla. Bla bla bla.

::: {.callout-note icon="false" title="In plain language"}
blalalal
:::
Error message:

[typst]: Compiling delete.typ to delete.pdf...downloading @preview/fontawesome:0.1.0 error: failed to download package (https://packages.typst.org/preview/fontawesome-0.1.0.tar.gz: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer) ┌─ delete.typ:245:8 │ 245 │ #import "@preview/fontawesome:0.1.0": * │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Quarto check returns the following:
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.549
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/local/texlive/bin/linux
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /tmp/RtmpAhlipE/rstudio/terminal/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.1
      Path: /usr/local/lib/R
      LibPaths:
        - .../renv/library/R-4.3/x86_64-pc-linux-gnu
        - .../.cache/R/renv/sandbox/R-4.3/x86_64-pc-linux-gnu/25ebdc09
      knitr: 1.45
      rmarkdown: 2.25

[✓] Checking Knitr engine render......OK
Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto-cli

Tutte le issue di quarto-dev/quarto-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.