EXCLUDE_GLOBS causes failure for directory with a git submodule
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- git, javascript, node.js
- 領域
- build-system, cli
調査の方向性
Start by reproducing the failure with node-lambda package, a local file:sub-module dependency, and EXCLUDE_GLOBS="sub-module". Inspect the packaging flow around lib/main.js:543 and how EXCLUDE_GLOBS handles submodule directories. Done means the directory can be excluded without npm install failing, while the workaround does not leave sub-module/package.json in the archive.
索引モデルが issue の本文から書いたものです。
説明
If a git submodule is listed in package.json
"dependencies": {
....
"sub-module": "file:sub-module"
},
and the directory name is within EXCLUDE_GLOBS
EXCLUDE_GLOBS="sub-module"
the following error occurs.
As a workaround, one can exclude the directory content EXCLUDE_GLOBS="sub-module/*", but this leaves sub-module/package.json in the zip file.
$ node-lambda package
Warning!!! You are building on a platform that is not 64-bit Linux (darwin.x64). If any of your Node dependencies include C-extensions, they may not work as expected in the Lambda environment.
=> Moving files to temporary directory
=> Running npm install --production
/usr/local/lib/node_modules/node-lambda/lib/main.js:543
throw err;
^
Error: Command failed: npm -s install --production --prefix /var/folders/4c/b2p9cxl9699211w4mps998g40000gp/T/apiAccess-1494407987225
at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Socket.<anonymous> (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:501:12)
$
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 185
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
motdotla/node-lambda のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
motdotla/node-lambda#840 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
motdotla/node-lambda#641 · コメント 6 件 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
motdotla/node-lambda#618 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
motdotla/node-lambda#544 · リアクション 1 件 ·
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
motdotla/node-lambda#537 · コメント 2 件 · リアクション 1 件 ·
motdotla/node-lambda の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Automattic/studio#4908 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
sugarlabs/musicblocks#8847 ·