Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kernel): error raised during rename operation on win32 (#1702)
When loading a new library into the jsii kernel, the provided `tarball` was extracted to a temporary directory, then moved into it's final location. On Windows, this operation could fail on an `EACCESS` or `EPERM` error (often due to malware scanners accessing the file for inspection on file systems which do not support renaming files that are being accessed). This changes how the `load` API works so taht the `tarball` is extracted directly in it's final install location, so that no rename operation is needed. Fixes #992 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information