Skip to content

Commit d80da7c

Browse files
authored
Merge pull request python-wheel-build#428 from shubhbapna/rename-previous-bootstrap-option
fix: rename previous bootstrap option
2 parents d9908c2 + fa59965 commit d80da7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/fromager/commands/bootstrap.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def _get_requirements_from_args(
6262
)
6363
@click.option(
6464
"-p",
65-
"--previous-bootstrap",
66-
"prev_graph_file",
65+
"--previous-bootstrap-file",
66+
"previous_bootstrap_file",
6767
type=clickext.ClickPath(),
6868
help="graph file produced from a previous bootstrap",
6969
)
@@ -72,7 +72,7 @@ def _get_requirements_from_args(
7272
def bootstrap(
7373
wkctx: context.WorkContext,
7474
requirements_files: list[pathlib.Path],
75-
prev_graph_file: pathlib.Path | None,
75+
previous_bootstrap_file: pathlib.Path | None,
7676
toplevel: list[str],
7777
) -> None:
7878
"""Compute and build the dependencies of a set of requirements recursively
@@ -88,9 +88,9 @@ def bootstrap(
8888
)
8989
logger.info("bootstrapping %r variant of %s", wkctx.variant, to_build)
9090

91-
if prev_graph_file:
92-
logger.info("reading previous bootstrap data from %s", prev_graph_file)
93-
prev_graph = dependency_graph.DependencyGraph.from_file(prev_graph_file)
91+
if previous_bootstrap_file:
92+
logger.info("reading previous bootstrap data from %s", previous_bootstrap_file)
93+
prev_graph = dependency_graph.DependencyGraph.from_file(previous_bootstrap_file)
9494
else:
9595
logger.info("no previous bootstrap data")
9696
prev_graph = None

0 commit comments

Comments
 (0)