Skip to content

refactor(agent): update agentcontainers api initialization #17600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Apr 29, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add warn
  • Loading branch information
mafredri committed Apr 29, 2025
commit 901a258fb2523dad52a5209ac13f7743b0e578f9
3 changes: 3 additions & 0 deletions agent/agentcontainers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ func NewAPI(logger slog.Logger, experimentalDevcontainersEnabled bool, options .
}
}
} else {
if api.cl != nil || api.dccli != nil || api.watcher != nil {
logger.Warn(ctx, "devcontainers are disabled but API is configured with devcontainer services")
}
api.cl = &NoopLister{}
api.dccli = &noopDevcontainerCLI{}
api.watcher = watcher.NewNoop()
Expand Down