Skip to content

Commit

Permalink
🧹 update go package to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Jan 15, 2024
1 parent 0936663 commit 7f1a8d8
Show file tree
Hide file tree
Showing 128 changed files with 461 additions and 462 deletions.
4 changes: 2 additions & 2 deletions .github/.goreleaser-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ builds:
- -tags="production netgo"
ldflags:
- "-extldflags=-static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
checksum:
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
algorithm: sha256
Expand Down
12 changes: 6 additions & 6 deletions .github/.goreleaser-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ builds:
- -tags="production netgo"
ldflags:
- "-extldflags=-static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
- id: macos
main: ./apps/cnspec/cnspec.go
binary: cnspec
Expand All @@ -39,8 +39,8 @@ builds:
flags: -tags production
ldflags:
# clang + macos does not support static: - -extldflags "-static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
hooks:
post:
- cmd: /tmp/quill sign-and-notarize "{{ .Path }}" -vv
Expand All @@ -58,8 +58,8 @@ builds:
flags: -tags production -buildmode exe
ldflags:
- "-extldflags -static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
hooks:
post:
- cmd: jsign --storetype DIGICERTONE --alias "{{ .Env.SM_CERT_ALIAS }}" --storepass "{{ .Env.SM_API_KEY }}|{{ .Env.SM_CLIENT_CERT_FILE}}|{{ .Env.SM_CLIENT_CERT_PASSWORD }}" --tsaurl "http://timestamp.digicert.com" '{{ .Path }}'
Expand Down
12 changes: 6 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ builds:
- -tags="production netgo"
ldflags:
- "-extldflags=-static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
- id: macos
main: ./apps/cnspec/cnspec.go
binary: cnspec
Expand All @@ -39,8 +39,8 @@ builds:
flags: -tags production
ldflags:
# clang + macos does not support static: - -extldflags "-static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
hooks:
post:
- cmd: /tmp/quill sign-and-notarize "{{ .Path }}" -vv
Expand All @@ -58,8 +58,8 @@ builds:
flags: -tags production -buildmode exe
ldflags:
- "-extldflags -static"
- -s -w -X go.mondoo.com/cnspec/v9.Version={{.Version}} -X go.mondoo.com/cnspec/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v9.Date={{.Date}}
- -X go.mondoo.com/cnquery/v9.Version={{.Version}} -X go.mondoo.com/cnquery/v9.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v9.Date={{.Date}}
- -s -w -X go.mondoo.com/cnspec/v10.Version={{.Version}} -X go.mondoo.com/cnspec/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnspec/v10.Date={{.Date}}
- -X go.mondoo.com/cnquery/v10.Version={{.Version}} -X go.mondoo.com/cnquery/v10.Build={{.ShortCommit}} -X go.mondoo.com/cnquery/v10.Date={{.Date}}
hooks:
post:
- cmd: jsign --storetype DIGICERTONE --alias "{{ .Env.SM_CERT_ALIAS }}" --storepass "{{ .Env.SM_API_KEY }}|{{ .Env.SM_CLIENT_CERT_FILE}}|{{ .Env.SM_CLIENT_CERT_PASSWORD }}" --tsaurl "http://timestamp.digicert.com" '{{ .Path }}'
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ ifndef VERSION
VERSION=${LATEST_VERSION_TAG}+$(shell git rev-list --count HEAD)
endif

LDFLAGS=-ldflags "-s -w -X go.mondoo.com/cnspec/v9.Version=${VERSION} -X go.mondoo.com/cnspec/v9.Build=${TAG}" # -linkmode external -extldflags=-static
LDFLAGSDIST=-tags production -ldflags "-s -w -X go.mondoo.com/cnspec/v9.Version=${LATEST_VERSION_TAG} -X go.mondoo.com/cnspec/v9.Build=${TAG} -s -w"
LDFLAGS=-ldflags "-s -w -X go.mondoo.com/cnspec/v10.Version=${VERSION} -X go.mondoo.com/cnspec/v10.Build=${TAG}" # -linkmode external -extldflags=-static
LDFLAGSDIST=-tags production -ldflags "-s -w -X go.mondoo.com/cnspec/v10.Version=${LATEST_VERSION_TAG} -X go.mondoo.com/cnspec/v10.Build=${TAG} -s -w"

.PHONY: info/ldflags
info/ldflags:
Expand Down
6 changes: 3 additions & 3 deletions apps/cnspec/cmd/backgroundjob/checkin.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"go.mondoo.com/cnquery/v9"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/sysinfo"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
"go.mondoo.com/cnquery/v10"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/sysinfo"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream"
"go.mondoo.com/ranger-rpc"
"go.mondoo.com/ranger-rpc/plugins/scope"
)
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/backgroundjob/serve_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/rs/zerolog/log"
"go.mondoo.com/cnquery/v9/logger/eventlog"
"go.mondoo.com/cnquery/v10/logger/eventlog"
"golang.org/x/sys/windows/svc"
"golang.org/x/sys/windows/svc/debug"
)
Expand Down
10 changes: 5 additions & 5 deletions apps/cnspec/cmd/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9/cli/config"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
"go.mondoo.com/cnspec/v9/internal/bundle"
"go.mondoo.com/cnspec/v9/policy"
"go.mondoo.com/cnquery/v10/cli/config"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream"
"go.mondoo.com/cnspec/v10/internal/bundle"
"go.mondoo.com/cnspec/v10/policy"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package config
import (
"github.com/cockroachdb/errors"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9/cli/config"
"go.mondoo.com/cnquery/v10/cli/config"
)

func ReadConfig() (*CliConfig, error) {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
)

func init() {
Expand Down
16 changes: 8 additions & 8 deletions apps/cnspec/cmd/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9/cli/config"
"go.mondoo.com/cnquery/v9/cli/theme"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/gql"
"go.mondoo.com/cnspec/v9/internal/bundle"
"go.mondoo.com/cnspec/v9/policy"
cnspec_upstream "go.mondoo.com/cnspec/v9/upstream"
"go.mondoo.com/cnquery/v10/cli/config"
"go.mondoo.com/cnquery/v10/cli/theme"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream/gql"
"go.mondoo.com/cnspec/v10/internal/bundle"
"go.mondoo.com/cnspec/v10/policy"
cnspec_upstream "go.mondoo.com/cnspec/v10/upstream"
mondoogql "go.mondoo.com/mondoo-go"
"gopkg.in/yaml.v3"
"k8s.io/utils/ptr"
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
)

func init() {
Expand Down
20 changes: 10 additions & 10 deletions apps/cnspec/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9"
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
"go.mondoo.com/cnquery/v9/cli/config"
cli_errors "go.mondoo.com/cnquery/v9/cli/errors"
"go.mondoo.com/cnquery/v9/cli/providers"
"go.mondoo.com/cnquery/v9/cli/theme"
"go.mondoo.com/cnquery/v9/cli/theme/colors"
"go.mondoo.com/cnquery/v9/logger"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/sysinfo"
"go.mondoo.com/cnspec/v9"
"go.mondoo.com/cnquery/v10"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
"go.mondoo.com/cnquery/v10/cli/config"
cli_errors "go.mondoo.com/cnquery/v10/cli/errors"
"go.mondoo.com/cnquery/v10/cli/providers"
"go.mondoo.com/cnquery/v10/cli/theme"
"go.mondoo.com/cnquery/v10/cli/theme/colors"
"go.mondoo.com/cnquery/v10/logger"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/sysinfo"
"go.mondoo.com/cnspec/v10"
"go.mondoo.com/ranger-rpc"
"go.mondoo.com/ranger-rpc/plugins/scope"
)
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
)

func init() {
Expand Down
30 changes: 15 additions & 15 deletions apps/cnspec/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9"
"go.mondoo.com/cnquery/v9/cli/config"
"go.mondoo.com/cnquery/v9/cli/execruntime"
"go.mondoo.com/cnquery/v9/cli/inventoryloader"
"go.mondoo.com/cnquery/v9/cli/theme"
"go.mondoo.com/cnquery/v9/logger"
"go.mondoo.com/cnquery/v9/mqlc"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
"go.mondoo.com/cnspec/v9/cli/reporter"
"go.mondoo.com/cnspec/v9/policy"
"go.mondoo.com/cnspec/v9/policy/scan"
policy_upstream "go.mondoo.com/cnspec/v9/policy/upstream"
"go.mondoo.com/cnquery/v10"
"go.mondoo.com/cnquery/v10/cli/config"
"go.mondoo.com/cnquery/v10/cli/execruntime"
"go.mondoo.com/cnquery/v10/cli/inventoryloader"
"go.mondoo.com/cnquery/v10/cli/theme"
"go.mondoo.com/cnquery/v10/logger"
"go.mondoo.com/cnquery/v10/mqlc"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream"
"go.mondoo.com/cnspec/v10/cli/reporter"
"go.mondoo.com/cnspec/v10/policy"
"go.mondoo.com/cnspec/v10/policy/scan"
policy_upstream "go.mondoo.com/cnspec/v10/policy/upstream"
)

const (
Expand Down
26 changes: 13 additions & 13 deletions apps/cnspec/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9"
"go.mondoo.com/cnquery/v9/cli/config"
cli_errors "go.mondoo.com/cnquery/v9/cli/errors"
"go.mondoo.com/cnquery/v9/cli/execruntime"
"go.mondoo.com/cnquery/v9/cli/inventoryloader"
"go.mondoo.com/cnquery/v9/cli/prof"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
"go.mondoo.com/cnspec/v9"
"go.mondoo.com/cnspec/v9/apps/cnspec/cmd/backgroundjob"
cnspec_config "go.mondoo.com/cnspec/v9/apps/cnspec/cmd/config"
"go.mondoo.com/cnspec/v9/policy/scan"
"go.mondoo.com/cnquery/v10"
"go.mondoo.com/cnquery/v10/cli/config"
cli_errors "go.mondoo.com/cnquery/v10/cli/errors"
"go.mondoo.com/cnquery/v10/cli/execruntime"
"go.mondoo.com/cnquery/v10/cli/inventoryloader"
"go.mondoo.com/cnquery/v10/cli/prof"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream"
"go.mondoo.com/cnspec/v10"
"go.mondoo.com/cnspec/v10/apps/cnspec/cmd/backgroundjob"
cnspec_config "go.mondoo.com/cnspec/v10/apps/cnspec/cmd/config"
"go.mondoo.com/cnspec/v10/policy/scan"
)

// we send a 78 exit code to prevent systemd from restart
Expand Down
12 changes: 6 additions & 6 deletions apps/cnspec/cmd/serve_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9/cli/config"
"go.mondoo.com/cnquery/v9/logger"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
cnspec_config "go.mondoo.com/cnspec/v9/apps/cnspec/cmd/config"
"go.mondoo.com/cnspec/v9/policy/scan"
"go.mondoo.com/cnquery/v10/cli/config"
"go.mondoo.com/cnquery/v10/logger"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream"
cnspec_config "go.mondoo.com/cnspec/v10/apps/cnspec/cmd/config"
"go.mondoo.com/cnspec/v10/policy/scan"
)

func init() {
Expand Down
10 changes: 5 additions & 5 deletions apps/cnspec/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9"
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin"
"go.mondoo.com/cnspec/v9"
"go.mondoo.com/cnquery/v10"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/plugin"
"go.mondoo.com/cnspec/v10"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"go.mondoo.com/cnquery/v9/cli/config"
"go.mondoo.com/cnquery/v10/cli/config"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
cnquery_app "go.mondoo.com/cnquery/v9/apps/cnquery/cmd"
cnquery_app "go.mondoo.com/cnquery/v10/apps/cnquery/cmd"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"

"github.com/spf13/cobra"
"go.mondoo.com/cnspec/v9"
"go.mondoo.com/cnspec/v10"
)

// versionCmd represents the version command
Expand Down
16 changes: 8 additions & 8 deletions apps/cnspec/cmd/vuln.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9/cli/shell"
"go.mondoo.com/cnquery/v9/explorer/executor"
"go.mondoo.com/cnquery/v9/logger"
"go.mondoo.com/cnquery/v9/providers"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/gql"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/mvd"
"go.mondoo.com/cnspec/v9/cli/reporter"
"go.mondoo.com/cnquery/v10/cli/shell"
"go.mondoo.com/cnquery/v10/explorer/executor"
"go.mondoo.com/cnquery/v10/logger"
"go.mondoo.com/cnquery/v10/providers"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream/gql"
"go.mondoo.com/cnquery/v10/providers-sdk/v1/upstream/mvd"
"go.mondoo.com/cnspec/v10/cli/reporter"
mondoogql "go.mondoo.com/mondoo-go"
"go.mondoo.com/ranger-rpc/codes"
"go.mondoo.com/ranger-rpc/status"
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cnspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package main

import "go.mondoo.com/cnspec/v9/apps/cnspec/cmd"
import "go.mondoo.com/cnspec/v10/apps/cnspec/cmd"

func main() {
cmd.Execute()
Expand Down
Loading

0 comments on commit 7f1a8d8

Please sign in to comment.