Workspaces



Hi,

I was looking at the workspaces implementation and was wondering if we should expose the workspace operations to/in the source providers.  The default implementation could follow what we do today.

This will allow the source providers to use more efficient operations for opening the workspace.  e.g.
https://gitlab.com/BuildStream/buildstream/blob/master/buildstream/_pipeline.py#L565 will end up calling https://gitlab.com/BuildStream/buildstream/blob/master/buildstream/plugins/sources/git.py#L146 for creating a workspace for a git backed project.  However, the --no-hardlinks option makes this potentially a lot more inefficient than it needs to be.

Exposing it also allows a source plugin to provide workflow specific setup.  e.g. setting up remotes in a certain way.

Thoughts?

Cheers,

Sander 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]