GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fetch_cargo_deps.py: ensure CARGO_HOME is used by AlexanderRichert-NOAA · Pull Request #1804 · JCSDA/spack-stack

Conversation

@AlexanderRichert-NOAA

@AlexanderRichert-NOAA AlexanderRichert-NOAA commented Oct 29, 2025

Copy link
Copy Markdown
Collaborator

Description

This PR ensures that CARGO_HOME is used (rather than the default of ~/.cargo) when fetching cargo deps, and also gets rid of the llnl.* deprecation warning for fetch_cargo_deps.py.

Dependencies

none

Issues addressed

none

Applications affected

most

Systems affected

all

Testing

  • CI: Note whether the automatic tests (GitHub actions tests that run automatically for every commit) pass or not
    • GitHub actions CI tests pass
  • Additional testing: Add information on any additional tests conducted
    • Acorn (manual test)

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.
  • All necessary updates to the documentation on readthedocs are included in this PR
  • All necessary updates to the spack-stack wiki will be made when this PR is merged

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AlexanderRichert-NOAA
fetch_cargo_deps.py: ensure CARGO_HOME is used
6a2cecc
@AlexanderRichert-NOAA
AlexanderRichert-NOAA requested review from climbfuji and eap October 29, 2025 20:44
climbfuji
climbfuji reviewed Oct 29, 2025
View reviewed changes
Comment thread util/fetch_cargo_deps.py
cargo_exe = Executable(cargo_wrapper)

env = EnvironmentModifications()
env.set("CARGO_HOME", cargo_home)

@climbfuji climbfuji Oct 29, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am surprised this is needed, because of lines 44-47 above

cargo_home = os.getenv("CARGO_HOME")
if not cargo_home:
    raise SpackError("CARGO_HOME must be set")

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@AlexanderRichert-NOAA AlexanderRichert-NOAA Oct 30, 2025

Copy link
Copy Markdown
Collaborator Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. It seems that maybe there's something about the Executable logic that's not automatically propagating it? 🤷

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@climbfuji climbfuji Oct 30, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed something similar with the wrapper script, #!/usr/bin/env bash doesn't work anymore. I had to change it to just #!/bin/bash in PR #1798

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
climbfuji
climbfuji approved these changes Oct 30, 2025
View reviewed changes
@AlexanderRichert-NOAA
AlexanderRichert-NOAA requested review from Hang-Lei-NOAA, RatkoVasic-NOAA, rickgrubin and rickgrubin-noaa October 30, 2025 02:14
@climbfuji
climbfuji merged commit 1013b41 into feature/update_to_spack_v1 Oct 30, 2025
@climbfuji
climbfuji deleted the AlexanderRichert-NOAA-patch-1 branch October 30, 2025 11:28
@climbfuji
climbfuji restored the AlexanderRichert-NOAA-patch-1 branch October 30, 2025 11:28
@climbfuji
climbfuji deleted the AlexanderRichert-NOAA-patch-1 branch January 30, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@climbfuji climbfuji climbfuji approved these changes
@eap eap Awaiting requested review from eap
@rickgrubin rickgrubin Awaiting requested review from rickgrubin
@RatkoVasic-NOAA RatkoVasic-NOAA Awaiting requested review from RatkoVasic-NOAA
@Hang-Lei-NOAA Hang-Lei-NOAA Awaiting requested review from Hang-Lei-NOAA
@rickgrubin-noaa rickgrubin-noaa Awaiting requested review from rickgrubin-noaa

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@AlexanderRichert-NOAA @climbfuji
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.