Skip to content

feat: declare the vendored modules in a manifest - #53

Merged
mcanouil merged 3 commits into
mainfrom
feat/declare-vendored-dependencies
Sep 6, 2026
Merged

feat: declare the vendored modules in a manifest#53
mcanouil merged 3 commits into
mainfrom
feat/declare-vendored-dependencies

Conversation

@mcanouil

@mcanouil mcanouil commented Sep 6, 2026

Copy link
Copy Markdown
Owner

The five Lua modules the extension takes from quarto-lua-modules were plain copies under _extensions/code-window/_modules/, with nothing recording where they came from.
They now move to _extensions/code-window/_vendor/quarto-lua-modules/ and are listed in _extensions/code-window/_dependencies.yml, which names the source repository, the release, the licence, and a SHA-256 for each file.
The vendoring script can then refetch them and check a copy against the release it claims to be.

  • html.lua, logging.lua, metadata.lua and pandoc-helpers.lua were the 1.0.0 files and are declared and refreshed at 2.0.0.
  • string.lua carried a version no release published, so it is adopted and brought to 2.0.0 as well.
  • cell-output.lua, language.lua and _modules/hotfix/ are first party and stay under _modules/.
  • code-window.lua and main.lua load the moved modules from their new path.

The documentation sync script also loses the scaffolder placeholders in its header, which never got a licence and an author name.

@mcanouil mcanouil added the Type: Refactor 🔥 Issues related to refactoring, restructuring, or cleaning up label Sep 6, 2026
@mcanouil mcanouil self-assigned this Sep 6, 2026
@mcanouil
mcanouil marked this pull request as ready for review September 6, 2026 12:02
@mcanouil
mcanouil merged commit 98b0f04 into main Sep 6, 2026
4 checks passed
@mcanouil
mcanouil deleted the feat/declare-vendored-dependencies branch September 6, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Refactor 🔥 Issues related to refactoring, restructuring, or cleaning up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant