Skip to content

quarto_add_extension() ignores user's installation disapproval #172

@eveyp

Description

@eveyp

I'm finding that quarto_add_extension() always installs the extension, even if the user responds with 'n' at the approval prompt:

> quarto::quarto_add_extension("schochastics/quarto-sketchy-html")
Quarto extensions may execute code when documents are rendered.
• If you do not trust the author(s) of this Quarto extensions, we recommend that you
  do not install or use this Quarto extensions.
Do you trust the authors of this Quarto extensions (Y/n)? n
Quarto extensions not installed.
[>] Downloading
[>] Unzipping
    Found 1 extension.

The following changes will be made:
Sketchy HTML documents   [Install]   1.1.0 (format)

[>] Extension installation complete.
Learn more about this extension at https://www.github.com/schochastics/quarto-sketchy-html

It seems like the internal check_extension_approval() function returns FALSE but that doesn't stop the rest of the installation code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions