OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] Version manager sets different version in different folders in Docker

Aperta
#750 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@kay-schecker ci sta già lavorando.

Dal 19/1/2024.

bug
Lingua principale
TypeScript
Stelle
2k
Fork
208
Merge medio
7h 12m
PR unite (30g)
6

Descrizione

🐛 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.

image

Steps to Reproduce

Steps to reproduce the behavior:

  1. 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).
  2. Attach to Docker container and check version of openapi-generator the CLI is using.
  3. Switch directories
  4. 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/openapi-generator-cli@2.8.0
RUN openapi-generator-cli version-manager set 7.1.0

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.