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,
|
"maxparams": 4,
|
||||||
"maxcomplexity": 13,
|
"maxcomplexity": 13,
|
||||||
"globals": {
|
"globals": {
|
||||||
"before": true,
|
|
||||||
"beforeEach": true,
|
"beforeEach": true,
|
||||||
"after": true,
|
"afterEach": true,
|
||||||
"describe": true,
|
"describe": true,
|
||||||
"it": true
|
"it": true
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
[#351](https://github.com/lovell/sharp/pull/351)
|
[#351](https://github.com/lovell/sharp/pull/351)
|
||||||
[@joelmukuthu](https://github.com/joelmukuthu)
|
[@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)
|
[#354](https://github.com/lovell/sharp/issues/354)
|
||||||
[@download13](https://github.com/download13)
|
[@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 -
|
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
|
### Mac OS
|
||||||
|
|
||||||
[](https://travis-ci.org/lovell/sharp-osx-ci)
|
[](https://travis-ci.org/lovell/sharp-osx-ci)
|
||||||
|
@ -8,10 +8,10 @@ var fixtures = require('../fixtures');
|
|||||||
|
|
||||||
describe('Clone', function() {
|
describe('Clone', function() {
|
||||||
|
|
||||||
before(function() {
|
beforeEach(function() {
|
||||||
sharp.cache(false);
|
sharp.cache(false);
|
||||||
});
|
});
|
||||||
after(function() {
|
afterEach(function() {
|
||||||
sharp.cache(true);
|
sharp.cache(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@ var fixtures = require('../fixtures');
|
|||||||
|
|
||||||
describe('Input/output', function() {
|
describe('Input/output', function() {
|
||||||
|
|
||||||
before(function() {
|
beforeEach(function() {
|
||||||
sharp.cache(false);
|
sharp.cache(false);
|
||||||
});
|
});
|
||||||
after(function() {
|
afterEach(function() {
|
||||||
sharp.cache(true);
|
sharp.cache(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user