Skip to content

Includes: support git includes#51191

Merged
tgamblin merged 26 commits intospack:developfrom
tldahlgren:include_git_repo_paths
Oct 22, 2025
Merged

Includes: support git includes#51191
tgamblin merged 26 commits intospack:developfrom
tldahlgren:include_git_repo_paths

Conversation

@tldahlgren
Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren commented Aug 21, 2025

This PR allows the use of git options, like those supported for repos.yaml, in include.yaml.

This has been tested manually using configuration files from https://github.com/spack/spack-configs/tree/main/USC/config.

Example (from the updated docs):

include:
- git: https://github.com/spack/spack-configs
  branch: main
  when: os == "centos7"
  paths:
  - USC/config/config.yaml
  - USC/config/packages.yaml

TODO:

  • Add unit tests (at least of git) options (scopes)

@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch from a3d0fcf to c251625 Compare August 27, 2025 01:00
@tldahlgren tldahlgren changed the title (WIP) Includes: support git includes Includes: support git includes Aug 27, 2025
@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch 2 times, most recently from 61448b8 to 3c9c953 Compare August 28, 2025 02:24
@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch 4 times, most recently from 3a3cb17 to c930c2e Compare September 8, 2025 23:24
@tldahlgren tldahlgren marked this pull request as ready for review September 9, 2025 01:16
@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch 2 times, most recently from 9531f43 to c58bd51 Compare September 9, 2025 19:41
@tldahlgren tldahlgren added this to the v1.1.0 milestone Sep 24, 2025
@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch from 9b5177e to 4340898 Compare October 6, 2025 21:08
@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch from 4340898 to 89ef413 Compare October 6, 2025 21:29
@tldahlgren tldahlgren requested a review from tgamblin October 7, 2025 16:30
@tldahlgren tldahlgren added wait-on-reviewers Waiting on comments from one or more reviewer. and removed wait-on-reviewers Waiting on comments from one or more reviewer. labels Oct 8, 2025
@tldahlgren tldahlgren added the v1.1.0 PRs to backport for v1.1.0 label Oct 17, 2025
Copy link
Copy Markdown
Member

@tgamblin tgamblin left a comment

Choose a reason for hiding this comment

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

Minor change requests/refactors but this looks good to me! Thanks @tldahlgren!

@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch 2 times, most recently from 8f3cb83 to 4239ebf Compare October 21, 2025 23:51
@tldahlgren tldahlgren force-pushed the include_git_repo_paths branch from 4239ebf to 0093a09 Compare October 21, 2025 23:54
@tgamblin tgamblin merged commit e250ec0 into spack:develop Oct 22, 2025
33 checks passed
kshea21 pushed a commit to kshea21/spack that referenced this pull request Nov 4, 2025
This PR allows the use of git options, like those supported for `repos.yaml`, in `include.yaml`.

This has been tested manually using configuration files from `https://github.com/spack/spack-configs/tree/main/USC/config`.

Example (from the updated docs):

```
include:
- git: https://github.com/spack/spack-configs
  branch: main
  when: os == "centos7"
  paths:
  - USC/config/config.yaml
  - USC/config/packages.yaml
```

- [x] Add unit tests (at least of `git`) options (scopes)

---------

Signed-off-by: tldahlgren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.1.0 PRs to backport for v1.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants