Skip to content

fix: correct NATS cmake flag in Docker packager#1130

Merged
yokofly merged 1 commit intodevelopfrom
bugfix/fix-nats-cmake-flag
Mar 16, 2026
Merged

fix: correct NATS cmake flag in Docker packager#1130
yokofly merged 1 commit intodevelopfrom
bugfix/fix-nats-cmake-flag

Conversation

@yokofly
Copy link
Copy Markdown
Collaborator

@yokofly yokofly commented Mar 16, 2026

Summary

  • The Docker packager passed -DENABLE_NATSIO=ON but the CMake option defined in contrib/nats-io-cmake/CMakeLists.txt is ENABLE_NATS
  • CMake silently ignored the unknown variable, so the nats-io C library was never built and USE_NATSIO was never set — the NATS JetStream connector (#if USE_NATSIO guards) was compiled out of all Docker images
  • Fix: rename the flag from ENABLE_NATSIO to ENABLE_NATS in docker/packager/packager

Context

Introduced in d28c604 ("add nats-io submodule") which was part of PR #1117. The JetStream connector itself (PR #1111) is correct — only the packager flag name was wrong.

Test plan

  • CI rebuilds Docker image with this fix
  • Verify CREATE EXTERNAL STREAM ... SETTINGS type='nats_jetstream' no longer returns NOT_IMPLEMENTED in the new image
  • Run NATS JetStream test harness (docker-compose + SQL tests)

Made with Cursor

… ENABLE_NATS)

The packager passed -DENABLE_NATSIO=ON but the CMake option is
ENABLE_NATS, so the nats-io library was silently skipped and the
NATS JetStream connector was never compiled into Docker images.

Co-Authored-By: Claude <[email protected]>
Made-with: Cursor
@yokofly yokofly marked this pull request as ready for review March 16, 2026 02:08
@yokofly yokofly requested a review from yuzifeng1984 March 16, 2026 02:08
@yokofly yokofly merged commit 7d41c4c into develop Mar 16, 2026
15 of 19 checks passed
@yokofly yokofly deleted the bugfix/fix-nats-cmake-flag branch March 16, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants