#5057·steampipe

os.Stat error in resolvePluginInstanceForConnection is treated as 'not installed' regardless of cause

Author: kaidaguerreCreated Sep 24, 2026Updated Sep 24, 2026

resolvePluginInstanceForConnection's os.Stat error is treated as "plugin not installed" regardless of the actual cause.

Where: pkg/steampipeconfig/steampipeconfig.go, resolvePluginInstanceForConnection.

What happens today: if _, err := os.Stat(pluginBinaryPath); err != nil { ...; return nil, nil } treats every os.Stat error identically as "not installed" - including a permissions error, a symlink loop, or a disk I/O error, not just "file does not exist".

What a fix would change for users: distinguishing os.IsNotExist(err) from other stat errors would let steampipe surface a real error (e.g. permission denied) instead of silently behaving as if the plugin were never installed, which would change what users see when something other than a missing binary is wrong.

What analysis is needed before fixing: whether callers of this function are prepared to handle a distinct error return here (currently they always expect nil, nil "not installed"), and how this state surfaces to the end user in each caller.

Generated with Claude Code

https://claude.ai/code/session_01VGDYEHuq4iigxBKFBhJije