Skip to content

feat: only link roots into default view#208

Open
wdconinc wants to merge 2 commits intomasterfrom
view-default-link-roots
Open

feat: only link roots into default view#208
wdconinc wants to merge 2 commits intomasterfrom
view-default-link-roots

Conversation

@wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

We keep hearing about many files from OSG folks. We have a symlink for all packages, even if we don't actually need to expose some of this functionality beyond explicitly included packages. This restricts what is linked into the view to only the roots.

I think we've tried this before. I forget why it failed. We'll see...

Copilot AI review requested due to automatic review settings March 23, 2026 18:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the shared Spack environment view configuration to reduce the number of files exposed in the default /opt/local view by linking only environment root specs, aligning with the goal of minimizing unnecessary symlinks for downstream users (e.g., OSG).

Changes:

  • Configure the default Spack view to link: roots (previously implicitly linking more than roots).
  • Keep link_type: symlink and existing exclude/select behavior unchanged.

@@ -5,6 +5,7 @@ view:
- epic
- py-pip@23.0
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

exclude lists py-pip@23.0, but packages.yaml requires py-pip@23.1.2:. As a result this exclusion won’t match, so py-pip will still be linked into the view (even with link: roots). Consider excluding py-pip without a version, or using a version range that actually matches the concretized constraint.

Suggested change
- py-pip@23.0
- py-pip

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants