Skip to main content

connector_service_binary

Function connector_service_binary 

Source
pub fn connector_service_binary(
    teams_home: &Path,
    supercode: &Path,
) -> Result<PathBuf, TeamsError>
Expand description

The binary an installed connector runs. On Windows a running .exe cannot be replaced, so a connector that ran the npm package’s own binary made npm install -g fail with EBUSY for as long as it ran: there the service runs a copy kept per version under the teams service directory, and installing again after an upgrade moves it to the new copy. Copies of other versions that no process holds any more are removed. Everywhere else the binary itself is replaceable in place.