Wails3 - install:frontend:deps hanging with npm link'ed packages.
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 36.3k
- Forks
- 1.9k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 33
Description
Description
Using npm link to include a local copy of a binary crasheswails build, for example, pro versions you can't bundle with your source repo.
"@fontawesome": "file:~/Code/lib/fontawesome/npm" running npm install works fine, but wails gets an issue:
To Reproduce
use npm link or npm install with a local directory using ~/my-project
wails3 fails to build
Expected behaviour
The fix, is to run with -f, to tell go-task to handle cache checksum's differently.
Screenshots
Attempted Fixes
The fix is to use the node_modules/.bin directory, so the change detection has a far smaller list of files to check; this has a side effect of speeding up the common:install:frontend:deps build step exponentially by the node_module dir size, as thousands of files are ignored.
System Details
* my putter: cpu: beep booper 2000 *
Additional context
PR incoming from: https://github.com/Snider/wails/tree/v3-alpha-fe-npm-gen-fix
Contributor guide
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 with the Wails3 task entry point common:install:frontend:deps and inspect how it handles npm link or local-directory dependencies, especially the node_modules/.bin path mentioned in the issue. Reproduce the hang with a linked or ~/my-project dependency, then confirm that the frontend dependency installation and wails build complete without scanning the full node_modules directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, javascript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100