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

Handle updates of manually installed tools #21

Open
thomassnielsen opened this issue Apr 8, 2015 · 2 comments
Open

Handle updates of manually installed tools #21

thomassnielsen opened this issue Apr 8, 2015 · 2 comments

Comments

@thomassnielsen
Copy link
Contributor

Especially if we install them through Hearth. I've got a feeling that we should some how track this (as mentioned in #20), but I'm not sure how. In any case, we should allow the user to intervene before updating. Screwing up someones fragile CLI tool setup is a big sin.

@thomassnielsen
Copy link
Contributor Author

I'm tempted to suggest that Hearth should install all tools in it's own directory and add it to the path. That should work, and we'll have a way to detect that it's ours, without making it available only in the GUI.

@thomassnielsen thomassnielsen modified the milestone: 0.1.0 Apr 10, 2015
@thomassnielsen thomassnielsen removed this from the 0.1.0 milestone Apr 12, 2015
@thomassnielsen
Copy link
Contributor Author

We followed the idea above, first compiling from source in 0.1.0, bundling binaries in 0.2.0.

What we need going forward is a way to know if the bundled version is above the installed one. For installed once we have .version() for every tool, but for the bundled one it might be harder, as we (as for now) bundle the new binaries in compressed archives.

I'd love to avoid hardcoding the version in code.

The best I can come up with now is to extract the bundled archive to a temp location and compare version with the binary found with which. Since we haven't decided the UI for updating tools yet, this may or may not be a workable solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants