New Issue: Fix Mason's spack integration

28183, "e-kayrakli", "Fix Mason's spack integration", "2025-12-10T23:36:48Z"

Going into 2.7, test/mason/mason-external tests will fail, and will be made into futures.

The chain of events that led us here is:

I think there are fundamental changes we should make here:

  1. Ideally, stop installing spack on our own and make it a dependency we ask the user for. This is covered in Should mason install its own spack if it is not found? · Issue #28179 · chapel-lang/chapel · GitHub, and can help simplify the implementation.
  2. We seem to be checking spack's work a bit too much (e.g. are the dependencies installed?). I think we should act like spack is more of a blackbox.
  3. Try to reduce/remove our reliance on reading Spack's stdout output and try to build our logic based on pattern matching on the output as much as we can.