purescript / purescript/npm-installer
Add abitlity to skip binary installation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
It would be useful to have the ability to skip purescript binary installation in certain scenarios.
For example, if the binary is supplied using another method, or just not needed. For example, in my case I have purescript as npm dependency in the project and it is used on host system, also packages declared in project are installed in docker container, but I don't run purs there, though the package should be is installed. But as I use alpine based images installations throws with error. So currently have to use a hacky way to avoid running purescirpt install.
The solution could be not to perform install operation if a env variable i.e. SKIP_INSTALL_PURESCRIPT is set. This is kind a common solution used by packages that require binary which may cause issues just as an example pupeeter uses PUPPETEER_SKIP_CHROMIUM_DOWNLOAD env for such case.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the npm installation hook that installs the PureScript binary and check how environment variables are handled. Add support for the proposed skip-install setting, then verify that the binary installation is bypassed when it is set and still runs normally when it is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100