Skip to content

fix(vdev): emit channel-suffixed version from publish-metadata#25395

Merged
pront merged 1 commit intomasterfrom
fix/vdev-publish-metadata-version
May 8, 2026
Merged

fix(vdev): emit channel-suffixed version from publish-metadata#25395
pront merged 1 commit intomasterfrom
fix/vdev-publish-metadata-version

Conversation

@pront
Copy link
Copy Markdown
Member

@pront pront commented May 8, 2026

Summary

cargo vdev build publish-metadata was emitting vector_version without the channel suffix because it called cargo::get_version() (which only reads VERSION env / Cargo.toml). The packaging Makefile and cargo vdev version go through app::version(), which appends .custom.<sha> for custom-channel builds.

The mismatch breaks deb/rpm packaging in custom-channel CI runs:

  • make package-...-all produces archives named vector-<ver>.custom.<sha>-<target>.tar.gz (via cargo vdev version).
  • package-deb.sh looks for vector-<ver>-<target>.tar.gz using the suffix-stripped VECTOR_VERSION env from publish-metadata.

Result: tar fails with Cannot open: No such file or directory and the deb/rpm packaging step blows up on every custom-channel build that gets that far.

Release-channel runs are unaffected because the suffix is empty there.

Vector configuration

NA. Build-tooling change.

How did you test this PR?

Repro: trigger a custom build, watch the packaging step in the previous run produce one filename and the deb/rpm step look for another.

After this fix: app::version() is the single source of truth, so vector_version (CI output), cargo vdev version, and the archive filename all agree.

Change Type

  • Bug fix
  • New feature
  • Dependencies
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

Build-tooling fix; no user-visible behavior change.

References

@pront pront requested a review from a team as a code owner May 8, 2026 16:38
@github-actions github-actions Bot added the domain: vdev Anything related to the vdev tooling label May 8, 2026
@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label May 8, 2026
@thomasqueirozb thomasqueirozb enabled auto-merge May 8, 2026 16:42
cargo vdev build publish-metadata was emitting vector_version without
the channel suffix because it called cargo::get_version() (which only
reads VERSION env / Cargo.toml). The packaging Makefile and cargo vdev
version go through app::version(), which appends .custom.<sha> for
custom-channel builds.

The mismatch broke deb/rpm packaging in custom-channel CI runs:
make package-...-all produced archives named
vector-<ver>.custom.<sha>-<target>.tar.gz, but package-deb.sh looked for
vector-<ver>-<target>.tar.gz using the suffix-stripped VECTOR_VERSION env
from publish-metadata. Release-channel runs were unaffected because the
suffix is empty there.

Switch publish_metadata.rs to app::version() so all consumers see the
same canonical version string.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pront pront disabled auto-merge May 8, 2026 16:43
@pront pront force-pushed the fix/vdev-publish-metadata-version branch from bf6fe75 to 21dff60 Compare May 8, 2026 16:43
@pront pront merged commit 4ff1874 into master May 8, 2026
41 checks passed
@pront pront deleted the fix/vdev-publish-metadata-version branch May 8, 2026 16:43
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

domain: vdev Anything related to the vdev tooling no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants