Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Outdated cf cli version in tag "latest", compared to tag "v22"

未關閉
#81 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
docker
領域
cli, devops

研究方向

Start by inspecting the Docker image build and tag configuration, then reproduce the reported commands in fresh containers for latest and v22. Compare the bundled cf versions and verify that latest supports both cf login and cf auth with the intended current CLI version.

由索引模型根據 Issue 內容生成。

描述

Dear colleagues,

I am not sure why, but latest seems to be a step backwards (2025 -> 2020):

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf -v
cf version 6.53.0+8e2b70a4a.2020-10-01

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:v22 sh
$ cf -v
cf version 8.14.1+2bcb856.2025-06-10

This is NOT an issue (not really) while using "cf login" as it is still using CF CLI v3. But while using "cf auth" it's falling back to CF CLI v2:

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf login -a https://api.cf.sap.hana.ondemand.com -u [email protected] -p abc --skip-ssl-validation
API endpoint: https://api.cf.sap.hana.ondemand.com

[...]

API endpoint:   https://api.cf.sap.hana.ondemand.com (API version: 3.203.0)

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf api api.cf.sap.hana.ondemand.com --skip-ssl-validation
Setting api endpoint to api.cf.sap.hana.ondemand.com...
OK

$ cf auth [email protected] abc
Cloud Foundry API version 2.268.0 requires CLI version 8.0.0. You are currently on version 6.53.0+8e2b70a4a.2020-10-01. To upgrade your CLI, please visit: https://github.com/cloudfoundry/cli#downloads

For testing "cf login" vs. "cf auth" please use a new docker instance! When you perform "cf login" in same instance first, "cf auth" will run on CF CLI v3 as well.

For my environment, I cannot use "cf login" as I need to build spaces etc. first (which are required for "cf login" but not for "cf auth").

Thx & BR,
Andreas

主要語言
Dockerfile
星號
8
分支
20
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

SAP/devops-docker-cf-cli 的其他 Issue

查看 SAP/devops-docker-cf-cli 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。