aws / aws/aws-codedeploy-agent
Sym Links not preserved during deployment
- Vorherrschende Sprache
- Rust
- Sterne
- 337
- Forks
- 195
- Ø Merge
- 10 Std. 54 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Deployment-Kopie vom deployment-root in das App-Verzeichnis nachzuverfolgen, wobei du dich auf die im Issue erwähnten Ruby-Aufrufe FileUtils.copy() und FileUtils.copyEntry() konzentrierst. Reproduziere das Problem mit einem gezippten Artefakt, das relative Symlinks enthält, die mehrere Verzeichnisebenen tief liegen, und überprüfe anschließend, dass die bereitgestellten Dateien weiterhin Symlinks und nicht kopierte Inhalte sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, ruby
- Bereich
- devops
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100