Skip to content

Commit 55203bb

Browse files
minecraftkillGuanzhouSong
authored andcommitted
Decouple repo-served version from GitHub release in pinning examples
The version-pinning section on /packages used the latest GitHub release (0.114-0) as the example output of apt-cache madison / dnf list, but the APT and RPM repositories currently serve 0.113-0. Split the constants so the direct-download examples keep tracking the latest GitHub release while the pinning examples show the repo-served version, and note that the package repositories can lag GitHub Releases.
1 parent 9505e9c commit 55203bb

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

app/packages/page.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ const nextGuides = [
5050
] as const;
5151

5252
const allReleasesUrl = "https://github.com/documentdb/documentdb/releases";
53-
const currentAptVersionExample = "0.114-0";
54-
const currentRpmVersionExample = "0.114.0-1.el9";
53+
// Latest GitHub release, used for the direct .deb/.rpm download examples.
54+
const latestReleaseAptVersion = "0.114-0";
55+
const latestReleaseRpmVersion = "0.114.0-1.el9";
56+
// Version currently served by the APT/RPM package repositories, which can lag
57+
// GitHub Releases. Used for the version-pinning examples.
58+
const repoAptVersionExample = "0.113-0";
59+
const repoRpmVersionExample = "0.113.0-1.el9";
5560
const currentReleaseExamples = [
56-
`ubuntu22.04-postgresql-18-documentdb_${currentAptVersionExample}_amd64.deb`,
57-
`deb13-postgresql-18-documentdb_${currentAptVersionExample}_amd64.deb`,
58-
`rhel9-postgresql18-documentdb-${currentRpmVersionExample}.x86_64.rpm`,
61+
`ubuntu22.04-postgresql-18-documentdb_${latestReleaseAptVersion}_amd64.deb`,
62+
`deb13-postgresql-18-documentdb_${latestReleaseAptVersion}_amd64.deb`,
63+
`rhel9-postgresql18-documentdb-${latestReleaseRpmVersion}.x86_64.rpm`,
5964
] as const;
6065

6166
export default function PackagesPage() {
@@ -384,8 +389,10 @@ export default function PackagesPage() {
384389
Use the commands below to discover available versions before pinning. Replace{" "}
385390
<code className="text-gray-300">&lt;VERSION&gt;</code> with the version string
386391
shown by the list command (e.g.{" "}
387-
<code className="text-gray-300">{currentAptVersionExample}</code> for APT,{" "}
388-
<code className="text-gray-300">{currentRpmVersionExample}</code> for RPM).
392+
<code className="text-gray-300">{repoAptVersionExample}</code> for APT,{" "}
393+
<code className="text-gray-300">{repoRpmVersionExample}</code> for RPM). The
394+
package repositories can lag the newest GitHub release, so pin to a version the
395+
list command actually shows.
389396
</p>
390397
<div>
391398
<p className="mb-1 text-xs font-semibold text-gray-400">APT — list then pin</p>

0 commit comments

Comments
 (0)