Comments (7)
Hi @Lyneals , sorry you've hit this issue.
I'll look into that and see what I can do
from steampipe.
Hello @kaidaguerre , thanks for the response (same guy, different account here).
I could make it work by adding my local plugin to the versions.json file:
{
"plugins": {
"local/steampipe-plugin-eol": {
"name": "local/steampipe-plugin-eol",
"version": "0.1.0",
"struct_version": 20230502
}
},
"struct_version": 20220411
}
I believe it's related to recent changes that check the versions before loading a plugin: bb26c0e
pluginVersion, ok := c.PluginVersions[imageRef]
if !ok {
// just log it
log.Printf("[WARN] addPlugin called for plugin '%s' which is not installed", imageRef)
return nil
}
Either we can expect local development to maintain their versions.json
file or we need to bypass this test for local plugins.
edit:
steampipe plugin list
+----------------------------+---------+-------------+
| Installed | Version | Connections |
+----------------------------+---------+-------------+
| local/steampipe-plugin-eol | 0.1.0 | eol |
+----------------------------+---------+-------------+
from steampipe.
I'm still having this issue with Steampipe v0.22.1:
╰─$ steampipe -v
Steampipe v0.22.1
I have a local plugin loaded in ~/.steampipe/
plugins
├── local
│ └── steampipe-plugin-teamwork
│ └── steampipe-plugin-teamwork.plugin
├── hub.steampipe.io
│ └── plugins
│ └── turbot
│ └── aws@latest
│ └── docs
│ └── steampipe-plugin-aws.plugin
│ └── version.json
│ └── steampipe@latest
│ └── docs
│ └── steampipe-plugin-steampipe.plugin
│ └── version.json
└── versions.json
However, when I execute steampipe plugin list
I still get
+--------------------------------------------------+---------+-------------+
| Installed | Version | Connections |
+--------------------------------------------------+---------+-------------+
| hub.steampipe.io/plugins/turbot/aws@latest | 0.133.0 | aws |
| hub.steampipe.io/plugins/turbot/steampipe@latest | 0.10.0 | steampipe |
+--------------------------------------------------+---------+-------------+
+------------------------------------------------+-------------+---------------+
| Failed | Connections | Reason |
+------------------------------------------------+-------------+---------------+
| hub.steampipe.io/plugins/local/teamwork@latest | teamwork | Not installed |
+------------------------------------------------+-------------+---------------+
I tried adding a local version.json
to my ~/.steampipe/plugins/local/steampipe-plugin-teamwork
directory, but no joy:
{
"name": "local/steampipe-plugin-teamwork@latest",
"version": "0.1.0",
"struct_version": 20230502
}
When I try to add a section to ~/steampipe/plugins/versions.json
, the section disappears every time I run steampipe plugin list
:
Before
{
"plugins": {
"hub.steampipe.io/plugins/turbot/aws@latest": {
"name": "hub.steampipe.io/plugins/turbot/aws@latest",
"version": "0.133.0",
"image_digest": "sha256:707173ae5c7bc57daee5b5355b3189be0d6764c859ba633e0a7d802e415f1610",
"binary_digest": "sha256:db13f495a3ac712ff0033cd0e485cf3bbdaab7f3689ec928f5359a50543041cb",
"binary_arch": "arm64",
"installed_from": "us-docker.pkg.dev/steampipe/plugins/turbot/aws:latest",
"last_checked_date": "2024-03-28T21:43:20Z",
"install_date": "2024-03-16T18:04:35Z",
"struct_version": 20230502
},
"hub.steampipe.io/plugins/turbot/steampipe@latest": {
"name": "hub.steampipe.io/plugins/turbot/steampipe@latest",
"version": "0.10.0",
"image_digest": "sha256:dc2cf4b807c94bad49564845967b739ef6bbcc0a4ff54f0341adfa10b85cddff",
"binary_digest": "sha256:d695f13d7d958781f111f2e4b6a677821a239432b2c8dd446049d384b39a7b6f",
"binary_arch": "arm64",
"installed_from": "us-docker.pkg.dev/steampipe/plugins/turbot/steampipe:latest",
"last_checked_date": "2024-03-28T21:43:20Z",
"install_date": "2023-12-29T01:46:48Z",
"struct_version": 20230502
},
"local/steampipe-plugin-teamwork@latest": {
"name": "local/steampipe-plugin-teamwork@latest",
"version": "0.1.0",
"struct_version": 20230502
}
},
"struct_version": 20220411
}
After
{
"plugins": {
"hub.steampipe.io/plugins/turbot/aws@latest": {
"name": "hub.steampipe.io/plugins/turbot/aws@latest",
"version": "0.133.0",
"image_digest": "sha256:707173ae5c7bc57daee5b5355b3189be0d6764c859ba633e0a7d802e415f1610",
"binary_digest": "sha256:db13f495a3ac712ff0033cd0e485cf3bbdaab7f3689ec928f5359a50543041cb",
"binary_arch": "arm64",
"installed_from": "us-docker.pkg.dev/steampipe/plugins/turbot/aws:latest",
"last_checked_date": "2024-03-28T21:43:20Z",
"install_date": "2024-03-16T18:04:35Z",
"struct_version": 20230502
},
"hub.steampipe.io/plugins/turbot/steampipe@latest": {
"name": "hub.steampipe.io/plugins/turbot/steampipe@latest",
"version": "0.10.0",
"image_digest": "sha256:dc2cf4b807c94bad49564845967b739ef6bbcc0a4ff54f0341adfa10b85cddff",
"binary_digest": "sha256:d695f13d7d958781f111f2e4b6a677821a239432b2c8dd446049d384b39a7b6f",
"binary_arch": "arm64",
"installed_from": "us-docker.pkg.dev/steampipe/plugins/turbot/steampipe:latest",
"last_checked_date": "2024-03-28T21:43:20Z",
"install_date": "2023-12-29T01:46:48Z",
"struct_version": 20230502
}
},
"struct_version": 20220411
}
from steampipe.
From what I can see, @gerrymiller, its not made it into a release yet: v0.22.1...main
I know Jon was doing some subsequent testing
from steampipe.
sorry for the delay in this one, found another small issue with the fix, hoping the get a patch out tomorrow.
from steampipe.
Related Issues (20)
- When installing a mod, ensure there is a valid modfile.
- Database option `search_path_prefix` does not alert search path
- Print errors and warnings to stderr
- polling service status from multiple processes causes db error HOT 2
- Steampipe Container
- Installation broken because install.sh was moved to a subfolder HOT 1
- Improve startup performance with high plugin count
- Arrow keys not working in WSL HOT 2
- plugin list cannot re-create top-level `versions.json` file if the file has been corrupted or empty
- Top level plugin versions.json file is getting overwritten(empty) somehow HOT 1
- Remove need to generate plugin file hash when creating GRPC plugin client
- Pass a configuration filepath as an argument to the streampipe command. HOT 9
- Daily update check message shows a <nil> when there is no message to show
- Mod parsing does not support nested dashboards
- Add support for passing args to non-interactive queries HOT 1
- Plugin entry now needs to exist in versions.json in order for connections to be loaded
- unexpected EOF revisited HOT 2
- Migrate from GCP to GHCR as CR for Plugins
- Rows fetched and Hydrate calls counts are incorrect when using joins HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steampipe.