Skip to content

Refactor installer API #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2019
Merged

Refactor installer API #109

merged 1 commit into from
Oct 28, 2019

Conversation

Larusso
Copy link
Owner

@Larusso Larusso commented Oct 28, 2019

Description

To support all new and old support modules I need to adjust the installer API. At the moment each module installation required a destination path for the installation. Sadly some modules only have no destination configured and either use a default value or none at all. That is a problem because validating which default value to use is platform and installer type specific. Which means that this can only be handled in the installer directly. I made the decision to change the API for install_editor and install_module to support an Option<AsRef<Path>> value. The installer will valid the destination and fail if a destination is required but not passed down.

Changes

  • CHANGE installer API

@Larusso Larusso added the change label Oct 28, 2019
@Larusso Larusso added this to the Unity Hub install parity milestone Oct 28, 2019
@Larusso Larusso self-assigned this Oct 28, 2019
Description
===========

To support all new and old support modules I need to adjust the
installer API. At the moment each module installation required a
destination path for the installation. Sadly some modules only have no
destination configured and either use a default value or none at all.
That is a problem because validating which default value to use is
platform and installer type specific. Which means that this can only be
handled in the installer directly. I made the decision to change the API
for `install_editor` and `install_module` to support an
`Option<AsRef<Path>>` value. The installer will valid the destination
and fail if a destination is required but not passed down.

Changes
=======

* ![CHANGE] installer API
@Larusso Larusso force-pushed the refactor/installer_api branch from cb467e7 to 10bf384 Compare October 28, 2019 18:00
@Larusso Larusso merged commit 7c25a78 into master Oct 28, 2019
@Larusso Larusso deleted the refactor/installer_api branch October 28, 2019 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant