Skip to content

Commit

Permalink
local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Apr 2, 2024
1 parent f8c34ba commit eafc26a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# In this case it will be pulled from your local repo
# instead of using the pre-installed provider in
# your OS (like ~/.mondoo/providers/os).
builtin: []
builtin: ["os"]
16 changes: 16 additions & 0 deletions providers/builtin_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ import (
_ "embed"
// osconf "go.mondoo.com/cnquery/v10/providers/os/config"
// os "go.mondoo.com/cnquery/v10/providers/os/provider"
osconf "go.mondoo.com/cnquery/v10/providers/os/config"
os "go.mondoo.com/cnquery/v10/providers/os/provider"
)

// //go:embed os/resources/os.resources.json
// var osInfo []byte

//go:embed os.resources.json

Check failure on line 20 in providers/builtin_dev.go

View workflow job for this annotation

GitHub Actions / go-bench

pattern os.resources.json: no matching files found

Check failure on line 20 in providers/builtin_dev.go

View workflow job for this annotation

GitHub Actions / go-test

pattern os.resources.json: no matching files found

Check failure on line 20 in providers/builtin_dev.go

View workflow job for this annotation

GitHub Actions / go-test

pattern os.resources.json: no matching files found

Check failure on line 20 in providers/builtin_dev.go

View workflow job for this annotation

GitHub Actions / go-test

pattern os.resources.json: no matching files found

Check failure on line 20 in providers/builtin_dev.go

View workflow job for this annotation

GitHub Actions / go-test-integration

pattern os.resources.json: no matching files found
var osInfo []byte

func init() {
// builtinProviders[osconf.Config.ID] = &builtinProvider{
// Runtime: &RunningProvider{
Expand All @@ -27,4 +32,15 @@ func init() {
// Config: &osconf.Config,
// }

builtinProviders[osconf.Config.ID] = &builtinProvider{
Runtime: &RunningProvider{
Name: osconf.Config.Name,
ID: osconf.Config.ID,
Plugin: os.Init(),
Schema: MustLoadSchema("os", osInfo),
isClosed: false,
},
Config: &osconf.Config,
}

}

0 comments on commit eafc26a

Please sign in to comment.