Remove project + Project telemetry
Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
parent
b33d6b2243
commit
938444a084
@ -3,12 +3,10 @@ package mod
|
|||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.dagger.io/dagger/cmd/dagger/cmd/common"
|
|
||||||
"go.dagger.io/dagger/cmd/dagger/logger"
|
"go.dagger.io/dagger/cmd/dagger/logger"
|
||||||
"go.dagger.io/dagger/mod"
|
"go.dagger.io/dagger/mod"
|
||||||
"go.dagger.io/dagger/pkg"
|
"go.dagger.io/dagger/pkg"
|
||||||
"go.dagger.io/dagger/state"
|
"go.dagger.io/dagger/state"
|
||||||
"go.dagger.io/dagger/telemetry"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var getCmd = &cobra.Command{
|
var getCmd = &cobra.Command{
|
||||||
@ -29,17 +27,12 @@ var getCmd = &cobra.Command{
|
|||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
project := common.CurrentProject(ctx)
|
|
||||||
cueModPath := pkg.GetCueModParent()
|
cueModPath := pkg.GetCueModParent()
|
||||||
// err = pkg.CueModInit(ctx, cueModPath)
|
// err = pkg.CueModInit(ctx, cueModPath)
|
||||||
_, err = state.Init(ctx, cueModPath)
|
_, err = state.Init(ctx, cueModPath)
|
||||||
if err != nil && err != state.ErrAlreadyInit {
|
if err != nil && err != state.ErrAlreadyInit {
|
||||||
lg.Fatal().Err(err).Msg("failed to initialize cue.mod")
|
lg.Fatal().Err(err).Msg("failed to initialize cue.mod")
|
||||||
}
|
}
|
||||||
doneCh := common.TrackProjectCommand(ctx, cmd, project, nil, &telemetry.Property{
|
|
||||||
Name: "packages",
|
|
||||||
Value: args,
|
|
||||||
})
|
|
||||||
|
|
||||||
var update = viper.GetBool("update")
|
var update = viper.GetBool("update")
|
||||||
|
|
||||||
@ -68,7 +61,6 @@ var getCmd = &cobra.Command{
|
|||||||
lg.Error().Err(err).Msg("error installing/updating packages")
|
lg.Error().Err(err).Msg("error installing/updating packages")
|
||||||
}
|
}
|
||||||
|
|
||||||
<-doneCh
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user