Questions about installing Serverless Framework V4 binaries and scripts
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- tooling
Línea de trabajo
Comienza leyendo los archivos mencionados binary.js, run.js y postInstall.js; después, compara su comportamiento con el issue relacionado #12692. Rastrea cómo se gestionan la versión de Serverless Framework y la ruta de publicación. Se considera terminado cuando se hayan proporcionado respuestas autorizadas a las cinco preguntas sobre la instalación y la disponibilidad del código fuente, o se hayan documentado los límites de configuración compatibles.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Issue description
I have several questions about the binary files that binary.js installs when I run the serverless (sls) command, and the JavaScript files (such as sf-core.js) that the binary files appear to install under $HOME/.serverless/releases/x.y.z/.
Q.1 Under the following conditions, if I have already run the serverless (sls) command once and installed a binary file named serverless-<OS_TYPE>-<OS_CPU_ARCHITECTURE>-<SERVERLESS_BINARY_VERSION> (e.g. serverless-linux-amd64-0.0.2) locally using run.js and binary.js, is it guaranteed that it will not be overwritten the second time onwards? (I read binary.js and think the specifications are as written above, but I just want to confirm if my understanding is correct.)
- Condition 1: Always run on the same OS type and OS arch (e.g.
linux-amd64) - Condition 2: The version of the Serverless Framework is completely fixed in the frameworkVersion in serverless.yml (e.g.
frameworkVersion: 4.4.18)
Q.2 What does the binary file serverless-<os.type>-<os.arch>- (e.g. serverless-linux-amd64-0.0.2) do? (I assume that this binary file reads the frameworkVersion: x.y.z specified in serverless.yml, if any, and then downloads the corresponding version of the Serverless Framework JavaScript files (such as sf-core.js) from the server you manage, and installs it under $HOME/.serverless/releases/x.y.z/. But is that correct? Does this binary file do anything else?)
Q.3 Is the source code for serverless-<os.type>-<os.arch>- available for viewing?
Q.4 Will the contents under the $HOME/.serverless/releases/x.y.z/ will be exactly the same as long as the frameworkVersion: x.y.z specified in serverless.yml does not change?)
Q.5 By default, JavaScript files (such as sf-core.js) seem to be installed in $HOME/.serverless/releases/x.y.z/, but can I change this path to a path of my choice? For example, can I change it to the same directory as binary.js as follows?
/<PATH>/<TO>/<MY_SERVERLESS_PROJECT>/node_modules/serverless
├── README.md
├── binary.js
├── node_modules
│ └── .bin
│ └── serverless-linux-amd64-0.0.2
├── package.json
├── postInstall.js
├── .serverless
│ └── releases
│ └── 4.4.18
└── run.js
- Related issue: https://github.com/serverless/serverless/issues/12692
Context
No response
- Lenguaje dominante
- JavaScript
- Estrellas
- 46.9k
- Forks
- 5.7k
- Merge medio
- 12 h 57 min
- PR fusionados (30 d)
- 61
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de serverless/serverless
-
bug cat/packaging
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
serverless/serverless#13447 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
serverless/serverless#13889 · 1 comentario · 1 asignado ·
-
serverless/serverless#13877 · 1 reacción · 1 asignado ·
-
bug
serverless/serverless#13876 · 1 asignado ·
-
bug cat/aws-iam
serverless/serverless#13872 · 1 asignado ·
Todos los issues de serverless/serverless
Issues similares
-
Update HugeIcons library Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
antfu-collective/icones#398 ·
-
ECmail.com Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
wesbos/burner-email-providers#554 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
components-web-app/docs#92 ·