aws / aws/aws-codedeploy-agent
Sym Links not preserved during deployment
- Lingua principale
- Rust
- Stelle
- 337
- Fork
- 195
- Merge medio
- 10h 54m
- PR unite (30g)
- 4
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando la copia del deployment da deployment-root alla directory dell’applicazione, concentrandoti sulle chiamate Ruby FileUtils.copy() e FileUtils.copyEntry() menzionate nell’issue. Riproduci il problema con un artefatto compresso contenente symlink relativi situati a diversi livelli di directory, quindi verifica che i file distribuiti rimangano symlink anziché contenuti copiati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, ruby
- Ambito
- devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100