Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#750 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@kay-schecker 已经在做这个了。

开始于 2024年1月19日。

评估

这个 Issue 还没有评估数据。

描述

bug

🐛 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
主要语言
TypeScript
星标
2k
派生
208
平均合并
7 小时 12 分钟
30 天内合并 PR
6

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenAPITools/openapi-generator-cli 的其他 Issue

查看 OpenAPITools/openapi-generator-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。