-
Notifications
You must be signed in to change notification settings - Fork 76
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
Distribute micromamba executable for plugins #1707
Distribute micromamba executable for plugins #1707
Conversation
@dcdenu4 I think the ReadTheDocs failure is unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @emlys, this will be great. The install size and time it takes to install InVEST is drastically better with this approach. I had a few questions, but mostly the Windows micromamba executable path still isn't quite right. I left a suggestion for what I think should do it. In the electron config when moving that file, making sure the exe
extension remains in the filename.
.github/workflows/build-and-test.yml
Outdated
run: | | ||
curl -Ls https://micro.mamba.pm/api/micromamba/osx-64/latest | tar -xvj bin/micromamba | ||
mv bin/micromamba dist/ | ||
./dist/micromamba --help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this just to make sure the command works, and if it doesn't we'll fail / exit here? If so, it might be nice to have a short comment here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, just testing the executable. Which might not be necessary any more, but I think it's fine to leave in. Added a comment
logger.info(`env info:\n${envInfo}`); | ||
const regex = new RegExp(String.raw`^${envName} +(.+)$`, 'm'); | ||
const regex = /env location : (.+)/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I've seen this syntax before. Is the /.../
syntax for a regex, without needing it to be wrapped in a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's a regex literal. My linter recommended this over a string.
workbench/electron-builder-config.js
Outdated
}, | ||
{ | ||
from: '../dist/micromamba.exe', // windows | ||
to: 'micromamba', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to: 'micromamba', | |
to: 'micromamba.exe', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this in another commit before I saw this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @emlys , this works for me now on Windows. I was able to install plugin "foo" and run it. I see one Mac test failed, but it looks like maybe it timed out.
Description
Fixes #
Checklist