Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

CLI is download even when found in runner cache

オープン
#282 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, typescript
領域
ci-cd, tooling

調査の方向性

この issue ではソースファイルもテストも指定されていません。まず、セットアップアクションによる jf と jfrog のキャッシュ検索を追跡し、次にツールキャッシュに jf だけがある Linux x64 のケースを再現してください。キャッシュされた jf によって冗長な jfrog のダウンロードが防止されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Describe the bug

I've placed jf in the runner cache, but the action is still downloading if because jfrog isn't cached.

Debug logs excerpt

##[debug]isExplicit: 2.75.0
##[debug]explicit? true
##[debug]checking cache: /opt/hostedtoolcache/jf/2.75.0/x64
##[debug]Found tool in cache jf 2.75.0 x64
##[debug]isExplicit: 2.75.0
##[debug]explicit? true
##[debug]checking cache: /opt/hostedtoolcache/jfrog/2.75.0/x64
##[debug]not found
Downloading JFrog CLI from https://releases.jfrog.io/artifactory/jfrog-cli/v2/2.75.0/jfrog-cli-linux-amd64/jfrog

The workaround seems to place both jf and jfrog in the cache. but that seems wasteful.

If one tool is found, why do we need the other?

Current behavior

Is download the CLI even though it's found in the cache

Reproduction steps

Place jf in the tools cache eg: /opt/hostedtoolcache/jf/2.75.0/x64 for x64

Expected behavior

if jf is found, don't download jfrog as well

Setup JFrog CLI version

v4.5.11

JFrog CLI version

2.75.0

Workflow operating system type and version

linux

JFrog Artifactory version (if relevant)

No response

JFrog Xray version (if relevant)

No response

主要言語
TypeScript
スター
266
フォーク
110
平均マージ
3日 15時間
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jfrog/setup-jfrog-cli のほかの issue

jfrog/setup-jfrog-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。