mirror of
https://github.com/lovell/sharp.git
synced 2025-07-10 11:00:14 +02:00
Add cache recommendations for use with Alpine/musl #354
Prevent Windows EBUSY errors during tests
This commit is contained in:
parent
2a56de69cc
commit
2d05804fc3
@ -4,9 +4,8 @@
|
||||
"maxparams": 4,
|
||||
"maxcomplexity": 13,
|
||||
"globals": {
|
||||
"before": true,
|
||||
"beforeEach": true,
|
||||
"after": true,
|
||||
"afterEach": true,
|
||||
"describe": true,
|
||||
"it": true
|
||||
}
|
||||
|
@ -37,7 +37,7 @@
|
||||
[#351](https://github.com/lovell/sharp/pull/351)
|
||||
[@joelmukuthu](https://github.com/joelmukuthu)
|
||||
|
||||
* Check for glibc before downloading pre-compiled binaries.
|
||||
* Improve support for musl libc systems e.g. Alpine Linux.
|
||||
[#354](https://github.com/lovell/sharp/issues/354)
|
||||
[@download13](https://github.com/download13)
|
||||
|
||||
|
@ -41,6 +41,10 @@ the following command as a user with `sudo` access
|
||||
curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash -
|
||||
```
|
||||
|
||||
For Linux-based operating systems such as Alpine that use musl libc,
|
||||
the smaller stack size means libvips' cache should be disabled
|
||||
via `sharp.cache(false)` to avoid a stack overflow.
|
||||
|
||||
### Mac OS
|
||||
|
||||
[](https://travis-ci.org/lovell/sharp-osx-ci)
|
||||
|
@ -8,10 +8,10 @@ var fixtures = require('../fixtures');
|
||||
|
||||
describe('Clone', function() {
|
||||
|
||||
before(function() {
|
||||
beforeEach(function() {
|
||||
sharp.cache(false);
|
||||
});
|
||||
after(function() {
|
||||
afterEach(function() {
|
||||
sharp.cache(true);
|
||||
});
|
||||
|
||||
|
@ -8,10 +8,10 @@ var fixtures = require('../fixtures');
|
||||
|
||||
describe('Input/output', function() {
|
||||
|
||||
before(function() {
|
||||
beforeEach(function() {
|
||||
sharp.cache(false);
|
||||
});
|
||||
after(function() {
|
||||
afterEach(function() {
|
||||
sharp.cache(true);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user