Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make installation more portable #3

Merged
merged 4 commits into from
Sep 14, 2024
Merged

Make installation more portable #3

merged 4 commits into from
Sep 14, 2024

Conversation

filipeom
Copy link
Member

In this patch I make two significant changes:

First, I use the installed dune dt binary to calculate the dependencyTree of a Node.js module. This change is accompanied by introduction of the Bos library to call subprocesses in a more declarative manner.

The big change above assumes that the dt was installed correctly in the change introduced in 3516167. This commit requires npm to be configured correctly. Here I add the conf-npm package to try and do this automatically, but some systems may require more manual configuration. Regardless, if compilation succeeds then everything will be ok.

Lastly, I create a share/config site for the ast_gen package to install the default config.json file. This extension makes the installation more portable as sites are managed by dune, and are configured in the Auxiliary.Share module.

In this patch I make two significant changes:

First, I use the installed dune `dt` binary to calculate the
dependencyTree of a Node.js module. This change is accompanied
by introduction of the `Bos` library to call subprocesses in
a more declarative manner.

The big change above assumes that the `dt` was installed
correctly in the change introduced in 3516167. This commit
requires `npm` to be configured correctly. Here I add the
`conf-npm` package to try and do this automatically, but
some systems may require more manual configuration.
Regardless, if compilation succeeds then everything will be ok.

Lastly, I create a `share/config` site for the `ast_gen`
package to install the default `config.json` file.
This extension makes the installation more portable as sites
are managed by dune, and are configured in the `Auxiliary.Share`
module.
@filipeom
Copy link
Member Author

I'm merging as it's passing the CI. I don't think I broke anything, but let's see 😅

@filipeom filipeom merged commit 9963583 into main Sep 14, 2024
2 checks passed
@filipeom filipeom deleted the fix-ci branch September 14, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant