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

chore(common): Allow to build offline #12439

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Commits on Sep 18, 2024

  1. chore(common): Allow to build offline

    A lot of the `configure` actions rely on node dependencies and so call
    `npm install`. Without a internet connection this hangs forever, even
    if you had successfully installed the dependencies before and nothing
    changed since then. This change adds a `--offline` parameter that passes
    `--prefer-offline` to npm, which causes npm to use the cached
    dependencies.
    
    Also sets the `MESON_PACKAGE_CACHE_DIR` environment variable so that all
    (sub-)projects share the same package cache dir. This will speed up regular
    builds a bit (e.g. `developer/src/kmcmplib` and `core` both have `icu4c`
    as a dependency), but will also help with offline builds.
    
    `MESON_PACKAGE_CACHE_DIR` requires Meson 1.3, however older Meson
    versions ignore this environment variable and simply continue to use a
    cache per subproject, so will continue to work (minus offline builds).
    ermshiperete committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    389fb4f View commit details
    Browse the repository at this point in the history