Skip to content
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

installer: align Install with Ensure & test it #34

Merged
merged 1 commit into from
Nov 11, 2021
Merged

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Nov 11, 2021

Closes #25

The two main methods (Ensure and Install) have inconsistent behaviour in the sense that Install doesn't perform validation or track installed files such that they can be removed.

This PR aligns both methods.

While reading this code I also realized that we make (somewhat unconscious) assumption that the state (removable files) only survives until the next Ensure or Install call, so the user can't really call both or one of those repeatedly, unless they also always call Remove before. I created a separate issue to track that though: #35

Copy link
Member

@kmoe kmoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@radeksimko radeksimko merged commit 489c6f6 into main Nov 11, 2021
@radeksimko radeksimko deleted the api-alignment branch November 11, 2021 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fill in install_test.go
2 participants