Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add spack-python script to output diff in tree format #138

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

scheibelp
Copy link
Collaborator

To use it, you run

spack-python altdiff.py spec1 spec2

e.g. for specs like:

$ spack spec --yaml dray+mpi > dray-mpi.yaml
$ spack spec --yaml dray~mpi > dray-nompi.yaml
Screenshot 2024-02-08 at 5 49 38 PM

Differences are highlighted red. There's quite a bit of extra output (and e.g. the exact same openmpi implementation appears in both DAGs because even in the dray~mpi case it ends up being used for a dependency), but the red highlighting is anticipated to be useful.

This command could also:

  • separately list out the diffs to ensure they aren't missed
  • optionally omit most details that are the same

@scheibelp scheibelp marked this pull request as draft February 9, 2024 01:59
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