Document stale latest CLI when using download-repository - #346
Document stale latest CLI when using download-repository#346sverdlov93 wants to merge 7 commits into
Conversation
Log an info line for that combination so CI can pin a version instead of relying on generic [RELEASE].
About the red
|

Overview
Related to #347. Does not close that issue.
version: latestis not resolved to a version number. It becomes the literal path segment[RELEASE]in the download URL (v2/[RELEASE]/jfrog-cli-.../jfrog). When the repository has Store Artifacts Locally enabled (the default), the binary returned for that path is cached under it, so later runs can keep receiving that same binary instead of a newer CLI. Caching is exactly right for a concrete version such as2.123.0, where the path is immutable.This PR documents that behavior and prints one plain
core.infoline. It does not change URL construction, authentication, downloading, caching, exit status, or failure behavior.Details
v2/[RELEASE]path and recommend a concreteX.Y.Z.action.yml: same guidance on theversionanddownload-repositoryinputs, phrased as a recommendation rather than a prohibition, since it only applies when the repository stores artifacts locally.latestanddownload-repositoryare set. Pinned versions and direct public downloads stay unchanged and silent.Safety
The production path adds two string comparisons and
core.info, which writes a normal line to stdout. There are no new throws,core.setFailed, error/warning annotations, network requests, authentication calls, or changes to the CLI URL. The generatedlib/utils.jsdiff is limited to the same info behavior.Follow-up: Auto-Build CI
Auto-Build-Publish is red for two independent reasons, neither from the docs/
core.infochange:install-go-with-cache@mainafter jfrog/.github#28 requiresgo.mod. This repo is a Node action.pull_request_targetruns the master workflow YAML, so pinninggo-versionhere does not fix the current labeled run until that YAML is on master or the shared action falls back (opened onjfrog/.github).local-rt-setup's 1200s wait. Same skip as jfrog-cli (JGC-413). Removedmacosfrom the Auto-Build matrix.This PR now also pins
go-version: "1.24"(whatlocal-rt-setupneeds) on Auto-Build and Frogbot Scan Repository.Real fix
Issue #347 tracks resolving
latestto a concrete version so each version is cached under its own immutable path, with the constraints that existing successful workflows must keep working and downloads must stay insidedownload-repository.