spack/lib/spack/docs
psakievich 1b82779087
Add options for sparse checkout in GitFetcher (#45473)
* Add options for sparse checkout in GitFetcher

Newer versions of git have a beta feature called sparse checkout
that allow users to check out a portion of a large repo.

This feature will be ideal for monolithic repo projects that want to
model their infrastructure via spack.  This PR implements an addition
to the GitFetcher that allows users to add a `git_sparse_paths`
attribute to package classes or versions which will then use sparse
checkout on those directories/files for the package.

* Style

* Split git clone into multiple functions

* Add sparse-checkout impl

* Internalize src clone functions

* Docs

* Adding sparse clone test

* Add test for partial clone

* [@spackbot] updating style on behalf of psakievich

* Small fixes

* Restore default branch status

* Fix attributes for package

* Update lib/spack/docs/packaging_guide.rst

Co-authored-by: Matthew Mosby <44072882+mdmosby@users.noreply.github.com>

* Extend unit test to multiple git versions

* style

---------

Co-authored-by: psakievich <psakievich@users.noreply.github.com>
Co-authored-by: Matthew Mosby <44072882+mdmosby@users.noreply.github.com>
2024-08-15 05:28:34 +00:00
..
_gh_pages_redirect Use https for links (#19244) 2020-10-09 11:24:09 -05:00
_pygments Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
_static make empty _static directory "exist" to git 2014-01-09 14:03:32 +01:00
_templates docs: re-enable google analytics (#43974) 2024-05-02 21:56:19 -04:00
build_systems docs: show phase signature for builders (#44067) 2024-05-17 18:16:31 +02:00
example_files Implement an optional compiler bootstrapping phase 2019-09-13 22:57:15 -07:00
images Cherry-picking virtual dependencies (#35322) 2023-11-01 23:35:23 -07:00
tables AutotoolsPackage / MakefilePackage: add gmake build dependency (#40380) 2023-10-18 19:56:54 +02:00
.gitignore docs: Replace package list with packages.spack.io (#40251) 2023-10-01 05:36:22 +02:00
basic_usage.rst remove platform=cray (#43796) 2024-05-30 14:21:32 +02:00
binary_caches.rst Allow packages to be pushed to build cache after install from source (#42423) 2024-04-11 19:43:13 -06:00
bootstrapping.rst Fix spack find bootstrapping docs (#43074) 2024-03-07 14:13:32 +01:00
build_settings.rst Allow more control over which specs are reused (#42782) 2024-05-01 23:05:26 -04:00
build_systems.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
chain.rst docs: update chain.rst to improve discussion of upstreams (#43918) 2024-05-22 22:04:53 +00:00
command_index.in Rework command reference in docs, add spack commands command 2018-02-12 20:25:17 -08:00
conf.py spack buildcache push: best effort (#45631) 2024-08-13 08:12:48 +02:00
config_yaml.rst certs: fix interpolation and disallow relative paths (#44030) 2024-05-07 11:16:32 +02:00
configuration.rst Allow loading extensions through python entry-points (#42370) 2024-03-06 11:18:49 +01:00
containers.rst containers: rm centos7 since EOL (#45049) 2024-07-04 22:22:23 +02:00
contribution_guide.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
developer_guide.rst Remove import distro from packages and docs (#43772) 2024-04-23 12:47:33 +02:00
environments.rst Buildcache: remove deprecated --allow-root and preview subcommand (#45204) 2024-07-11 18:19:04 -07:00
extensions.rst Allow loading extensions through python entry-points (#42370) 2024-03-06 11:18:49 +01:00
features.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
frequently_asked_questions.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
getting_started.rst remove platform=cray (#43796) 2024-05-30 14:21:32 +02:00
gpu_configuration.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
index.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
Makefile API Docs: fix broken reference targets 2021-07-16 08:30:56 -07:00
mirrors.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
module_file_generation.svg SC17: reworked module file tutorial section (#5657) 2017-11-12 00:27:20 -08:00
module_file_support.rst modules: allow autoload: run, like in environment views (#42743) 2024-03-04 08:49:45 +01:00
packages_yaml.rst develop: Add -b/--build-directory option to set build_directory package attribute (#39606) 2024-02-16 06:30:58 +00:00
packaging_guide.rst Add options for sparse checkout in GitFetcher (#45473) 2024-08-15 05:28:34 +00:00
pipelines.rst ci: deprecate the --dependencies and --optimize option (#45005) 2024-07-02 22:06:52 +02:00
replace_conda_homebrew.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
repositories.rst docs: remove warning about repositories and package extension (#44247) 2024-05-17 22:03:57 +00:00
requirements.txt build(deps): bump flake8 from 7.1.0 to 7.1.1 in /lib/spack/docs (#45588) 2024-08-06 07:08:57 +02:00
signing.rst Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
spack.yaml Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00