Skip to content

Add scripts to download cargo dependencies and store in local cargo registry for offline installation#1618

Merged
climbfuji merged 30 commits intoJCSDA:developfrom
climbfuji:feature/rust_cargo_local
Apr 30, 2025
Merged

Add scripts to download cargo dependencies and store in local cargo registry for offline installation#1618
climbfuji merged 30 commits intoJCSDA:developfrom
climbfuji:feature/rust_cargo_local

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji commented Apr 25, 2025

Summary

This PR adds scripts to fetch cargo dependencies into a local registry for cached or offline installation, and for downloading and installing rust/cargo if necessary. Credits to @AlexanderRichert-NOAA for the initial version of the fetch-cargo logic.

The new logic is also incorporated in the utility utils/nrl/batch_install.sh to demonstrate how they fit into the sequence of steps.

Testing

Tested locally on my dev box and on Blueback with utils/nrl/batch_install.sh.

Applications affected

None

Systems affected

None

Dependencies

None

Issue(s) addressed

Working towards #1597

Checklist

  • This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
  • These changes have been tested on the affected systems and applications.
  • All dependency PRs/issues have been resolved and this PR can be merged.

Test User and others added 28 commits April 16, 2025 09:31
…ests.yaml: use actions/checkout@v4 and ubuntu-latest instead of ubuntu-20.04
…xt/lib/jcsda-emc/spack-stack/stack/stack_env.py: spack.config.merge_yaml --> spack.schema.merge_yaml
…v/package.py and spack-ext/repos/spack-stack/packages/gmao-swell-env/package.py
…yaml and update spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py accordingly
…r Ubuntu except with GNU, update Python and OpenMPI versions
…kages_oneapi.yaml and configs/sites/tier1/narwhal/packages_oneapi.yaml
…/nrl/batch_install.sh to automatically update and use local rust/cargo registry
@climbfuji climbfuji self-assigned this Apr 25, 2025
@climbfuji climbfuji added the enhancement New feature or request label Apr 25, 2025
@climbfuji climbfuji marked this pull request as ready for review April 28, 2025 11:30
@climbfuji
Copy link
Copy Markdown
Collaborator Author

The macOS binary cache is currently being rebuilt. Once that's done, I'll update this PR from develop and hopefully the macOS tests will pass, too.

@climbfuji climbfuji enabled auto-merge (squash) April 30, 2025 14:51
@climbfuji climbfuji disabled auto-merge April 30, 2025 16:30
@climbfuji climbfuji merged commit a13a4b6 into JCSDA:develop Apr 30, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in spack-stack-2.0.x (2025 Q4) Apr 30, 2025
@climbfuji climbfuji deleted the feature/rust_cargo_local branch April 30, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants