Title: Cannot build when parent directory contains space(s) · Issue #123 · nodegit/nodegit · GitHub
Open Graph Title: Cannot build when parent directory contains space(s) · Issue #123 · nodegit/nodegit
X Title: Cannot build when parent directory contains space(s) · Issue #123 · nodegit/nodegit
Description: Duplicate, but not really solved: #80 I have a directory named Project Dev that I put all of the Git project clones into. When I build nodegit with: npm run-script gen && npm install && npm test I eventually receive the following error: ...
Open Graph Description: Duplicate, but not really solved: #80 I have a directory named Project Dev that I put all of the Git project clones into. When I build nodegit with: npm run-script gen && npm install && npm test I ...
X Description: Duplicate, but not really solved: #80 I have a directory named Project Dev that I put all of the Git project clones into. When I build nodegit with: npm run-script gen && npm install &&...
Opengraph URL: https://github.com/nodegit/nodegit/issues/123
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot build when parent directory contains space(s) ","articleBody":"Duplicate, but not really solved: https://github.com/nodegit/nodegit/issues/80\n\n---\n\nI have a directory named `Project Dev` that I put all of the Git project clones into.\n\nWhen I build `nodegit` with:\n\n``` bash\nnpm run-script gen \u0026\u0026 npm install \u0026\u0026 npm test\n```\n\nI eventually receive the following error:\n\n``` bash\nclang: error: no such file or directory: 'Dev/nodegit/vendor/libgit2/build'\n```\n\nNotice the `Dev` instead of `Project Dev`.\n\nI have a space in my path for the purpose of vetting out this error in dependencies. I can change it on my end, but I do not intend to have as a requirement to my project using `nodegit`: \"_your installation path must not contain any spaces_\".\n\n---\n## Complete Log\n\n``` bash\nnpm run-script gen \u0026\u0026 npm install \u0026\u0026 npm test\n\n\u003e nodegit@0.1.0 gen /Users/glavin/Documents/Project Dev/nodegit\n\u003e node gen.js\n\n\n\u003e nodegit@0.1.0 install /Users/glavin/Documents/Project Dev/nodegit\n\u003e node install.js\n\n[nodegit] Downloading libgit2 dependency.\n[nodegit] Building libgit2 dependency.\n-- The C compiler identification is Clang 5.0.0\n-- Check for working C compiler: /usr/bin/cc\n-- Check for working C compiler: /usr/bin/cc -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\nzlib was not found; using bundled 3rd-party sources.\n-- Configuring done\n-- Generating done\n-- Build files have been written to: /Users/glavin/Documents/Project Dev/nodegit/vendor/libgit2/build\nLinking C shared library libgit2.dylib\n[100%] Built target git2\n[nodegit] Building native module.\n2014-01-05 05:39:41.358 xcodebuild[23063:1007] Could not fetch 'View' main menu item\n CXX(target) Release/obj.target/nodegit/src/base.o\n CXX(target) Release/obj.target/nodegit/src/blob.o\n CXX(target) Release/obj.target/nodegit/src/commit.o\n CXX(target) Release/obj.target/nodegit/src/oid.o\n CXX(target) Release/obj.target/nodegit/src/reference.o\n CXX(target) Release/obj.target/nodegit/src/object.o\n CXX(target) Release/obj.target/nodegit/src/repo.o\n CXX(target) Release/obj.target/nodegit/src/index.o\n../src/index.cc:723:7: warning: unused variable 'result' [-Wunused-variable]\n int result = git_index_find(\n ^\n1 warning generated.\n CXX(target) Release/obj.target/nodegit/src/index_entry.o\n CXX(target) Release/obj.target/nodegit/src/index_time.o\n CXX(target) Release/obj.target/nodegit/src/tag.o\n CXX(target) Release/obj.target/nodegit/src/revwalk.o\n CXX(target) Release/obj.target/nodegit/src/signature.o\n CXX(target) Release/obj.target/nodegit/src/time.o\n CXX(target) Release/obj.target/nodegit/src/tree.o\n CXX(target) Release/obj.target/nodegit/src/tree_builder.o\n CXX(target) Release/obj.target/nodegit/src/tree_entry.o\n CXX(target) Release/obj.target/nodegit/src/diff_find_options.o\n CXX(target) Release/obj.target/nodegit/src/diff_options.o\n CXX(target) Release/obj.target/nodegit/src/diff_list.o\n CXX(target) Release/obj.target/nodegit/src/patch.o\n CXX(target) Release/obj.target/nodegit/src/delta.o\n CXX(target) Release/obj.target/nodegit/src/diff_file.o\n CXX(target) Release/obj.target/nodegit/src/diff_range.o\n CXX(target) Release/obj.target/nodegit/src/threads.o\n CXX(target) Release/obj.target/nodegit/src/refdb.o\n CXX(target) Release/obj.target/nodegit/src/odb_object.o\n CXX(target) Release/obj.target/nodegit/src/odb.o\n CXX(target) Release/obj.target/nodegit/src/submodule.o\n../src/submodule.cc:734:27: warning: cast to 'unsigned int *' from smaller integer type 'int32_t' (aka 'int') [-Wint-to-pointer-cast]\n from_status = (unsigned int *) args[0]-\u003eToInt32()-\u003eValue();\n ^\n1 warning generated.\n CXX(target) Release/obj.target/nodegit/src/remote.o\n../src/remote.cc:287:11: warning: variable 'from_progress_cb' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]\n if (args[0]-\u003eIsFunction()) {\n ^~~~~~~~~~~~~~~~~~~~~\n../src/remote.cc:292:28: note: uninitialized use occurs here\n baton-\u003eprogress_cb = from_progress_cb;\n ^~~~~~~~~~~~~~~~\n../src/remote.cc:287:7: note: remove the 'if' if its condition is always false\n if (args[0]-\u003eIsFunction()) {\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n../src/remote.cc:286:52: note: initialize the variable 'from_progress_cb' to silence this warning\n git_transfer_progress_callback from_progress_cb;\n ^\n = NULL\n1 warning generated.\n CXX(target) Release/obj.target/nodegit/src/clone_options.o\n SOLINK_MODULE(target) Release/nodegit.node\nclang: error: no such file or directory: 'Dev/nodegit/vendor/libgit2/build'\nmake: *** [Release/nodegit.node] Error 1\ngyp ERR! build error \ngyp ERR! stack Error: `make` failed with exit code: 2\ngyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\ngyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)\ngyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)\ngyp ERR! System Darwin 13.0.0\ngyp ERR! command \"node\" \"/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\"\ngyp ERR! cwd /Users/glavin/Documents/Project Dev/nodegit\ngyp ERR! node -v v0.10.24\ngyp ERR! node-gyp -v v0.12.1\ngyp ERR! not ok \n\nnpm ERR! nodegit@0.1.0 install: `node install.js`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the nodegit@0.1.0 install script.\nnpm ERR! This is most likely a problem with the nodegit package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR! node install.js\nnpm ERR! You can get their info via:\nnpm ERR! npm owner ls nodegit\nnpm ERR! There is likely additional logging output above.\nnpm ERR! System Darwin 13.0.0\nnpm ERR! command \"/usr/local/Cellar/node/0.10.24/bin/node\" \"/usr/local/bin/npm\" \"install\"\nnpm ERR! cwd /Users/glavin/Documents/Project Dev/nodegit\nnpm ERR! node -v v0.10.24\nnpm ERR! npm -v 1.3.21\nnpm ERR! code ELIFECYCLE\nnpm ERR! \nnpm ERR! Additional logging details can be found in:\nnpm ERR! /Users/glavin/Documents/Project Dev/nodegit/npm-debug.log\nnpm ERR! not ok code 0\n```\n\n---\n\nI hope this is a quick and easy fix. I cannot use this project until it is resolved. I am going to try and fix it myself tomorrow, but I am not entirely sure where to start. If someone could even point me in the right direction I'll try my best to fix it and provide a Pull Request.\n\nThank you.\n","author":{"url":"https://github.com/Glavin001","@type":"Person","name":"Glavin001"},"datePublished":"2014-01-05T09:46:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/123/nodegit/issues/123"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ee6c12e-1c96-987b-3806-ffe4143a1455 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF0E:27DFD6:216D364:2C9B301:6A5D6E49 |
| html-safe-nonce | 715dc639c2c3e2c6ecdd25283fdd44eb696073249b16c9ff8a361cab90b25b2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjBFOjI3REZENjoyMTZEMzY0OjJDOUIzMDE6NkE1RDZFNDkiLCJ2aXNpdG9yX2lkIjoiNzA2NTM5NDQ1ODM5MDI2MTMyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f993a2426fa10e9e2bc4448fa8f14cd0a3fef8775223a32172e607c22e4bad91 |
| hovercard-subject-tag | issue:25068265 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/123/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e713810b3c2d3301a959b5c2a7f5e3b551c74fbbd58a0c65bb7d57fce06a4885/nodegit/nodegit/issues/123 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e713810b3c2d3301a959b5c2a7f5e3b551c74fbbd58a0c65bb7d57fce06a4885/nodegit/nodegit/issues/123 |
| og:image:alt | Duplicate, but not really solved: #80 I have a directory named Project Dev that I put all of the Git project clones into. When I build nodegit with: npm run-script gen && npm install && npm test I ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Glavin001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width