big-crayon-94763
06/19/2023, 6:14 PMfast-nail-55400
06/19/2023, 7:56 PMGet
syntax for changing other parameters active in the rule graph. The environment in effect is one of those other parameters. See https://github.com/pantsbuild/pants/blob/0e51584547e86dd2e8d6e89755c1458ee29883cb/src/python/pants/core/goals/test.py#L948-L954 for an example.fast-nail-55400
06/19/2023, 7:57 PMfast-nail-55400
06/19/2023, 7:57 PMpackage = await Get(
BuiltPackage, {request.field_set: PackageFieldSet, environment_name: EnvironmentName}
)
fast-nail-55400
06/19/2023, 7:59 PMGet
basically asks the engine: "Find a conversion between PackageFieldSet
and BuiltPackage
and set the instance of EnvironmntName
in the rule graph to be environment_name
during that evaluation."fast-nail-55400
06/19/2023, 7:59 PMbig-crayon-94763
06/19/2023, 8:01 PM