Skip to content

Commit

Permalink
Merge pull request #1470 from martinRenou/backport_1440
Browse files Browse the repository at this point in the history
Backport PR #1440: Fix CI
  • Loading branch information
martinRenou committed Feb 10, 2022
2 parents 6d3ce1b + 3142136 commit 7a2dcc4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,6 @@ jobs:
run: mamba install yarn jupyterlab=2

- name: Install the labextension
env:
NODE_OPTIONS: --openssl-legacy-provider
run: jupyter labextension install dist/bqplot*.tgz --debug
1 change: 1 addition & 0 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
},
"jupyterlab": {
"extension": "lib/jupyterlab-plugin",
"webpackConfig": "webpack.lab.config.js",
"outputDir": "../share/jupyter/labextensions/bqplot",
"sharedPackages": {
"@jupyter-widgets/base": {
Expand Down
7 changes: 7 additions & 0 deletions js/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
const path = require('path');

const crypto = require('crypto');

// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
const cryptoOrigCreateHash = crypto.createHash;
crypto.createHash = (algorithm) =>
cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);

const rules = [
{
test: /\.css$/,
Expand Down
6 changes: 6 additions & 0 deletions js/webpack.lab.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const crypto = require('crypto');

// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
const cryptoOrigCreateHash = crypto.createHash;
crypto.createHash = (algorithm) =>
cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);

0 comments on commit 7a2dcc4

Please sign in to comment.