spack / spack/spack

Rehash shell after spack install

Open
#33,735 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
5.1k
Forks
2.5k
Avg merge
3d 4h
Merged PRs (30d)
82

Description

Summary

perform rehash in shell (e.g. hash -r) after spack install

Rationale

As per #33734, the shell needs rehash to use the newly installed package.

Description

the implementation could be a helper function that allows a package to rehash after installation

Additional information

No response

General information
  • I have run spack --version and reported the version of Spack
  • I have searched the issues of this repo and believe this is not a duplicate

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the spack install command and its shell integration to find where a post-install rehash could be triggered. Review how supported shells handle hash -r, then verify that a newly installed package is available without manual rehashing after the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.