Skip to content

Fix sites plugin test#15224

Open
paurkedal wants to merge 2 commits into
ocaml:mainfrom
paurkedal:fix-sites-plugin-test
Open

Fix sites plugin test#15224
paurkedal wants to merge 2 commits into
ocaml:mainfrom
paurkedal:fix-sites-plugin-test

Conversation

@paurkedal

Copy link
Copy Markdown

As discussed in #11998 the test as it currently stands does not test loading of plugins since there seems to be a bug in the package installation for the plugin. To illustrate this, I made two commits, one which exposes the installation issue and another which fixes the issue. Or is the fix really a workaround for an unrelated issue with dune pkg lock?

There may be another thing blocking the loading of the plugin. Notice that the plugins directory for app ends up under the plugin1 installation, while I presume it's meant to mix into the app installation. Is that supported by the plugin system? In any case, that's not the (only) real issue:

I also tried to check Sites.Plugins.Plugins.list (), which always returns the empty list with the variations I've tried for this test, contrary to my observation for an opam-installed binary, as mentioned in paurkedal/ocaml-caqti#140.

@Alizter Alizter added the dune-site-plugin The `dune-site` plugin — lets executables dynamically load installation artifacts at runtime label Jun 17, 2026
@paurkedal paurkedal force-pushed the fix-sites-plugin-test branch from e7856e0 to 39373c0 Compare June 17, 2026 14:56
This shows that plugin1 is not correctly installed when attempting to
load it.

Signed-off-by: Petter A. Urkedal <urkedal@nbi.dk>
Extracting a separate tar-file for the plugin subdirectory seems to fix
the installation.

Signed-off-by: Petter A. Urkedal <urkedal@nbi.dk>
@paurkedal paurkedal force-pushed the fix-sites-plugin-test branch from 39373c0 to 19fad0c Compare June 17, 2026 14:58
@paurkedal paurkedal marked this pull request as ready for review June 17, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dune-site-plugin The `dune-site` plugin — lets executables dynamically load installation artifacts at runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants