[BUG] Version manager sets different version in different folders in Docker
@kay-schecker y travaille déjà.
Depuis le 19/1/2024.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
🐛 Bug Report:
Describe the bug
I am running the CLI as part of a Bitbucket pipeline in a Docker container. The v7.2.0 update broke our pipeline because of an Axios version update. It's easy enough to set the openapi-generator version back to v7.1.0 using openapi-generator-cli version-manager set 7.1.0. I put this line in my Dockerfile.
However, I saw that v7.2.0 was still being used. Debugging it locally by building the Docker container and attaching to it, I see at the root level, openapi-generator-cli version is set to 7.1.0, but changing to a copied-in folder where the pipeline work is done, the version is 7.2.0.
Steps to Reproduce
Steps to reproduce the behavior:
- Build a Docker container where openapi-generator-cli is installed via npm, and the openapi-generator version is set to a version other than the latest (7.2.0 at time of writing).
- Attach to Docker container and check version of openapi-generator the CLI is using.
- Switch directories
- Check the version of openapi-generator being used
Expected behavior
The openapi-generator version should be the same, regardless of directory
Operation System (please complete the following information):
- Docker image from node:16.20.1-alpine
Package System (please complete the following information):
- NPM v8.19.4
- openapi-generator-cli v2.8.0
Additional context
The following commands are in my Docker file to install and set the CLI
RUN npm install -g @openapitools/[email protected]
RUN openapi-generator-cli version-manager set 7.1.0
- Langage dominant
- TypeScript
- Étoiles
- 2k
- Forks
- 210
- Merge moyen
- 55 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependenciesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
OpenAPITools/openapi-generator-cli#1277 · 1 commentaire · 2 réactions ·
-
[FEATURE] Add a side-effect-free command to resolve version tagsPeut-être pris @c19yamamoto l’a pris il y a 1 jour. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
-
[BUG] JAVA_OPTS is incorrectly evaluatedPeut-être à nouveau libre @kay-schecker l’a pris il y a 138 jours, et aucune pull request n’est ouverte. Ouvertebug
OpenAPITools/openapi-generator-cli#1213 · 1 personne assignée ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version managerPeut-être à nouveau libre @kay-schecker l’a pris il y a 193 jours, et aucune pull request n’est ouverte. Ouvertebug
OpenAPITools/openapi-generator-cli#1190 · 1 personne assignée ·
-
[BUG] openapiGeneratorIgnoreList is missing from schemaPeut-être à nouveau libre @kay-schecker l’a pris il y a 243 jours, et aucune pull request n’est ouverte. Ouvertebug
OpenAPITools/openapi-generator-cli#1138 · 1 commentaire · 1 personne assignée ·
Toutes les issues de OpenAPITools/openapi-generator-cli
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
521xueweihan/HelloGitHub#4025 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
voidzero-dev/void#478 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 69/100
Small-tailqwq/dsh-deep-whale#207 ·
Les mainteneurs répondent en général sous 1 jour
-
The inspector never shows the instances field, so scaling out is unreachablePeut-être pris @Mrkewl l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
xevrion/breakscale#96 ·
Les mainteneurs répondent en général sous 4 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Flux159/mcp-server-kubernetes#384 ·