average-breakfast-91545
06/19/2023, 6:33 PMPublishAndWritePackages
which contains the current PublishPackages plus a set of packages to write to the workspace? If so, is that a sensible name for the type?curved-television-6568
06/19/2023, 6:45 PMPublishProcessesRequest
so to me it would make sense to call it PublishProcessesResponse
. Only down side is it’s rather close to the PublishProcesses
type returned by the backends but I’d be OK with it any way as the request/response type is not meant to leave this single module at all. Could even consider having a _
prefix on the internal types to make that explicitly clear.
That is (typing out to get a better sense of how it looks, members in square brackets):
PublishProcessesRequest [FieldSets..] -> PublishProcessesResponse [PublishProcesses, Packages]
curved-television-6568
06/19/2023, 6:46 PMaverage-breakfast-91545
06/19/2023, 6:48 PMcurved-television-6568
06/19/2023, 6:48 PMaverage-breakfast-91545
06/19/2023, 6:49 PMcurved-television-6568
06/19/2023, 6:50 PMaverage-breakfast-91545
06/20/2023, 8:33 AMI’d really like to avoid taking the detour to the backend merely to pass the information through.The import of this statement has dawned on me. Should I just say
packages = await MultiGet(
Get(BuiltPackage, EnvironmentAwarePackageRequest(pkg))
for tgt in targets
for pkg in target_roots_to_package_field_sets.mapping[tgt]
)
in the top-level publish goal, rather than having each backend feed the packages back up the chain?curved-television-6568
06/20/2023, 12:49 PMpackage_for_publish
into an “effecting” rule and pass it the workspace and dist dir to do the materializing step in there, calling invoking it with await Effect(…)
I think that ought to work.
What you suggest works of course, but it feels slightly weird to me to request the same things twice so close together..average-breakfast-91545
06/20/2023, 1:48 PMcurved-television-6568
06/20/2023, 2:30 PMpackage_for_publish
is ok, keeping the side effecting in the goal rule is probably better any way. I tend to “think out loud” before analysing if it’s the best idea or not.. 😜curved-television-6568
06/20/2023, 2:32 PM