Note: this is incomplete, want to get thoughts before I clean up and add tests.
Currently we split the check APIs which abstract workspace extraction. This makes it mildly difficult to add checks (see https://github.com/wayfair/one-version/issues/24) without extracting workspaces twice or duplicating across check APIs.
I think we can just bifurcate the workspace extraction across package managers, have that return a uniform object. Then operate checks directly on that.
Description
Note: this is incomplete, want to get thoughts before I clean up and add tests.
Currently we split the
check
APIs which abstract workspace extraction. This makes it mildly difficult to add checks (see https://github.com/wayfair/one-version/issues/24) without extracting workspaces twice or duplicating across check APIs.I think we can just bifurcate the workspace extraction across package managers, have that return a uniform object. Then operate checks directly on that.
Type of Change