Skip to content

Docs: Fix broken download links#4624

Merged
efiacor merged 1 commit into
kptdev:mainfrom
Nordix:documentation-version-tag-match
Jul 8, 2026
Merged

Docs: Fix broken download links#4624
efiacor merged 1 commit into
kptdev:mainfrom
Nordix:documentation-version-tag-match

Conversation

@aravindtga

Copy link
Copy Markdown
Contributor

Description

Add --match='v[0-9]*' to git describe in the documentation Makefile to ensure only CLI release tags are used when resolving the kpt version for download links.

Motivation

The recent release of api/v0.0.2 caused git describe --tags --abbrev=0 to return api/v0.0.2 instead of the latest CLI release tag (e.g. v1.0.0-beta.65.1). The --match='v[0-9]*' filter excludes Go module sub-path tags (api/*,
porch/*, etc.) which follow standard Go module versioning conventions and
will never be CLI release tags.

Fixes #4623

AI Usage Disclosure

  • Kiro has been used to draft PR message.

@aravindtga aravindtga self-assigned this Jul 7, 2026
@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit 4009ceb
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a4d05535da33f0008213cd8
😎 Deploy Preview https://deploy-preview-4624--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes broken kpt CLI download links in the documentation site build by ensuring the version is derived only from top-level CLI release tags (e.g. v1.0.0-*), avoiding Go module sub-path tags like api/v0.0.2.

Changes:

  • Update git describe invocations in the documentation Makefile to include --match='v[0-9]*' when computing HUGO_KPT_VERSION.
  • Apply the same tag-filtering behavior to both production-build and preview-build targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aravindtga aravindtga marked this pull request as ready for review July 7, 2026 12:36
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. documentation Improvements or additions to documentation labels Jul 7, 2026
@aravindtga aravindtga requested review from a team July 7, 2026 12:36
@aravindtga aravindtga changed the title Docs: Fix broken download links caused by api module tag Docs: Fix broken download links Jul 7, 2026
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@aravindtga aravindtga force-pushed the documentation-version-tag-match branch from b652b87 to 4009ceb Compare July 7, 2026 13:55
@dosubot dosubot Bot added the lgtm label Jul 8, 2026
@efiacor efiacor merged commit d30910b into kptdev:main Jul 8, 2026
9 checks passed
@efiacor efiacor deleted the documentation-version-tag-match branch July 8, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Download links in documentation are broken since release of api v0.0.2

4 participants