aws / aws/aws-codedeploy-agent
Sym Links not preserved during deployment
- Lenguaje dominante
- Rust
- Estrellas
- 337
- Forks
- 195
- Merge medio
- 10 h 54 min
- PR fusionados (30 d)
- 4
Descripción
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.
Guía de contribución
Línea de trabajo
Empieza siguiendo la copia del despliegue desde deployment-root hasta el directorio de la aplicación, centrándote en las llamadas de Ruby FileUtils.copy() y FileUtils.copyEntry() mencionadas en el issue. Reproduce el problema con un artefacto comprimido que contenga symlinks relativos situados a varios directorios de profundidad y, después, verifica que los archivos desplegados sigan siendo symlinks en lugar de contenidos copiados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, ruby
- Área
- devops
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100