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
Skip libvips compilation with SHARP_IGNORE_GLOBAL_LIBVIPS env var #1165
Conversation
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.
Hello, thank you very much for this PR, especially as it has the double bonus of both tests and documentation updates! I've left one question inline about the test.
test/unit/libvips.js
Outdated
@@ -12,6 +12,7 @@ const setPlatform = function (platform) { | |||
|
|||
const restorePlatform = function () { | |||
setPlatform(originalPlatform); | |||
delete process.env.SHARP_IGNORE_GLOBAL_LIBVIPS; |
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.
The platform-agnostic tests don't (currently) call restorePlatform
so I think this env var won't get deleted. Perhaps the delete
could move to the new test itself, after the assertion?
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.
Ah! Good call 😅 That explains why I saw the process.env.SHARP_IGNORE_GLOBAL_LIBVIPS
being used 5 times on coveralls. I could explain this to myself.
I'll move the delete to the test itself then unless if I find a cleaner solution :-)
@lovell I've made the change. There are 8 jobs, and the coverage mentions the new code branch has been used 8 times. I guess it's fixed :-) By the way, thank you so much by this library, and for the underlying work you have put into it. I'm amazed by its quality and speed 👍 |
Thank you / merci beaucoup! |
You're welcome 🙂 |
fixes #1164