Skip to content

added 'binary_index_root' entry in config#20137

Closed
mslacken wants to merge 1 commit intospack:developfrom
mslacken:binary_index
Closed

added 'binary_index_root' entry in config#20137
mslacken wants to merge 1 commit intospack:developfrom
mslacken:binary_index

Conversation

@mslacken
Copy link
Copy Markdown
Contributor

Fixes #20136 by adding the binary_index_root entry to the default config.

Copy link
Copy Markdown
Contributor

@vvolkl vvolkl left a comment

Choose a reason for hiding this comment

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

Thanks @mslacken, that's great -- I was also just looking into installing spack on a read-only filesystem, and hit the same problem (actually it was only this path and the junit-report that had to be fixed, I'll make a PR for the latter).

Comment on lines +85 to +86
# binary caches. Default location is $spack/opt/spack/indices
# binary_index_root: ~/.spack/indices
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
# binary caches. Default location is $spack/opt/spack/indices
# binary_index_root: ~/.spack/indices
# binary caches. In case $spack is read-only, set to a writeable directory, like ~/.spack/indices.
binary_index_root: $spack/opt/spack/indices

Convention seems to be to explicitly set the default here (this makes the default value that is set in lib/spack/spack/binary_distribution.py ineffective, maybe remove there?)

@cosmicexplorer
Copy link
Copy Markdown
Contributor

cosmicexplorer commented Mar 30, 2021

I believe this was obsoleted after discussion in #22500!

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.

binary_index_root not in standard config

4 participants