aws / aws/aws-codedeploy-agent
Sym Links not preserved during deployment
- 主要言語
- Rust
- スター
- 337
- フォーク
- 195
- 平均マージ
- 10時間 54分
- マージ済み PR(30日)
- 4
説明
OS: Linux
agent_version: OFFICIAL_1.0-1.1458_rpm
I am giving the code deploy agent a pre-zipped file uploaded to s3 for deployment which contains a number of relative symlinks a few directories deep (using `zip -ry`). I confirmed that the artifact is unzipped correctly on the server and all symlinks are there in the deployment-root, but during the copying of the files from the deployment-root to the app directory, the symlinks are replaced with the actual contents instead of preserving the symlink.
I believe this has to do with the use of Ruby's FileUtils.copy() instead of FileUtils.copyEntry() but have not tested the change yet.
コントリビューションガイド
調査の方向性
まず、deployment-root からアプリディレクトリへのデプロイコピーを追跡し、issue で言及されている Ruby の FileUtils.copy() と FileUtils.copyEntry() の呼び出しに注目します。複数のディレクトリ階層の深さにある相対 symlink を含む zip 形式のアーティファクトで再現し、デプロイされたファイルがコピーされた内容ではなく symlink のままであることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, ruby
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100