confluentinc / confluentinc/confluent-kafka-javascript
Unable to override binary download host
- Dominant language
- TypeScript
- Stars
- 304
- Forks
- 45
- Avg merge
- 11h 47m
- Merged PRs (30d)
- 5
Description
I need to override the binary download host for offline installs. This is necessary in order to use this package in airgapped environments not connected to the internet. `node-pre-gyp` [suggests this is supported](https://github.com/mapbox/node-pre-gyp/?tab=readme-ov-file#download-binary-files-from-a-mirror) but it does not work. I found a bug with how it replaces dashes: https://github.com/mapbox/node-pre-gyp/issues/896
Just a suggestion for an alternative to managing supported binaries... some packages use the approach of packaging supported binaries into npm packages listed as optional dependencies with the appropriate `os` defined. For example, `esbuild` does this [here](https://github.com/evanw/esbuild/blob/main/npm/esbuild/package.json). This provides a really nice experience for running airgapped environments because nothing needs to be overridden and the npm packages are simply proxied/replicated as is.
Contributor guide
Assessment
This issue has not been assessed yet.