Container builds fail in CodeBuild with "cannot copy to non-directory"

オープン
#2,537 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, node.js
領域
build-system

調査の方向性

Locate ContainerSourceAsset and trace how .dockerignore is merged with CONTAINER_CONTEXT_SECRET_EXCLUDES under IgnoreMode.DOCKER, then check whether ignore matching resolves symlinked paths (pnpm's node_modules symlinks) before comparing. Search the repo for existing tests of the build-context upload and add a fixture reproducing a pnpm workspace layout with a symlinked node_modules. Done when a directory COPY from that context no longer trips on the symlink and node_modules content never reaches the uploaded context.

索引モデルが issue の本文から書いたものです。

説明

Container builds fail in CodeBuild with "cannot copy to non-directory" when the build context is a pnpm workspace. In pnpm, app/<agent>/node_modules/@scope/<pkg> is a symlink to ../../packages/<pkg>. ContainerSourceAsset layers .dockerignore over CONTAINER_CONTEXT_SECRET_EXCLUDES with IgnoreMode.DOCKER, but the nested symlinked node_modules still reaches the uploaded context and a COPY of that directory then fails - even with node_modules/ in .dockerignore. Workaround is copying source files individually instead of by directory, which works but silently drifts out of date as files are added.

version: AgentCoreCLI/0.24.2 (darwin 25.5.0; node/v22.18.0)

主要言語
TypeScript
スター
339
フォーク
129
平均マージ
19時間 21分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。