Skip to content

fix: remove deprecated cmux package and update flags for inheritance#57

Merged
kooksee merged 3 commits into
v2from
fix/lint1
May 20, 2026
Merged

fix: remove deprecated cmux package and update flags for inheritance#57
kooksee merged 3 commits into
v2from
fix/lint1

Conversation

@kooksee
Copy link
Copy Markdown
Contributor

@kooksee kooksee commented May 20, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the redant dependency to v0.4.0, removes the legacy cmux package, and refactors configuration flags by replacing the Category field with an Inherit property. It also adjusts the return signature of an environment validation helper in tests and optimizes string buffering in the migration component. Reviewers identified a likely bug in the migration logic where a database driver name is accessed incorrectly. Additionally, feedback was provided regarding missing Inherit: true properties on several flags (gRPC port and feature flags) to ensure consistency with the new configuration model.

Comment thread component/entmigrates/migrate.go Outdated
Description: flag.Usage,
Value: flag.Value,
Default: flag.Value.String(),
Category: category,
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.

medium

The Category field was removed, but Inherit: true was not added. For consistency with other flags updated in this PR (such as those in running/runtime.go), feature flags should likely be inherited so they are available to subcommands.

Suggested change
Category: category,
Inherit: true,

Comment thread running/runtime.go
Description: "service grpc port",
Value: GrpcPort,
Default: GrpcPort.String(),
Category: "system",
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.

medium

The GrpcPortFlag is missing the Inherit: true property, which is inconsistent with the updates made to DebugFlag, EnvFlag, and HttpPortFlag. Since the Category field was removed, this flag should likely be marked for inheritance as well to maintain the intended behavior for system flags.

Suggested change
Category: "system",
Inherit: true,

kooksee and others added 2 commits May 20, 2026 23:00
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@kooksee kooksee merged commit a251527 into v2 May 20, 2026
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.

1 participant