Comments (1)
Anyway, manually pnpm run postinstall
in node_modules/.pnpm/[email protected]/node_modules/dugite/package.json
to redownload and extract git binary fixes this.
I'm copying dugite to electron bundled app's Resources/node_modules to fix module resolution in worker_thread. Maybe at sometime I break this by using dereference: true
?
exports.default = async (buildPath, electronVersion, platform, arch, callback) => {
const cwd = path.resolve(buildPath, '..');
const projectRoot = path.resolve(__dirname, '..');
// it has things like `git/bin/libexec/git-core/git-add` link to `git/bin/libexec/git-core/git`, to reduce size, so can't use `dereference: true` here.
// And pnpm will have node_modules/dugite to be a shortcut, can't just copy it with `dereference: false`, have to copy from .pnpm folder
await fs.copy(path.join(projectRoot, 'node_modules', '.pnpm', `dugite@${packageJSON.dependencies.dugite}`, 'node_modules', 'dugite'), path.join(cwd, 'node_modules', 'dugite'), { dereference: false });
from dugite.
Related Issues (20)
- Use in React Native HOT 1
- dugite/package.json: Unexpected end of JSON input in Electron 11 beta HOT 3
- GitProcess.exec cause CPU 100% and never resolve in Electron HOT 2
- Return process or PID in IGitResult HOT 7
- Slow tests fail on missing repository HOT 2
- Stream Commands to GitProcess HOT 3
- Any way of stopping Dugite from downloading Git? HOT 2
- ChainAlert: npm package release (1.108.0) has no matching tag in this repo HOT 2
- Simultaneous async git operations - best practice? HOT 1
- Proxy support seems to have regressed HOT 3
- How to run git command interactively?
- 'subtree' is not a git command
- Github Desktop Dugite fails on arm64 linux HOT 1
- rmSync is not defined HOT 1
- `execTask.cancel()` doesn't kill the git process properly HOT 4
- Missing require in dugite/script /download-git.js HOT 1
- Drop `electron` from repository tags HOT 3
- Request: Publish version 2.5.2 to the npm package registry HOT 2
- Unable to use git difftool? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dugite.