Fix context issue on dagger version
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
parent
c808f4e828
commit
8eb01d850b
@ -15,10 +15,10 @@ import (
|
|||||||
|
|
||||||
goVersion "github.com/hashicorp/go-version"
|
goVersion "github.com/hashicorp/go-version"
|
||||||
"github.com/mitchellh/go-homedir"
|
"github.com/mitchellh/go-homedir"
|
||||||
|
"github.com/rs/zerolog/log"
|
||||||
"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/cmd/common"
|
||||||
"go.dagger.io/dagger/cmd/dagger/logger"
|
|
||||||
"go.dagger.io/dagger/mod"
|
"go.dagger.io/dagger/mod"
|
||||||
"go.dagger.io/dagger/telemetry"
|
"go.dagger.io/dagger/telemetry"
|
||||||
"go.dagger.io/dagger/version"
|
"go.dagger.io/dagger/version"
|
||||||
@ -280,11 +280,11 @@ func isUniverseVersionLatest() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkVersion() {
|
func checkVersion() {
|
||||||
lg := logger.New()
|
lg := log.Ctx(context.Background()).With().Logger()
|
||||||
|
|
||||||
if version.Version == version.DevelopmentVersion {
|
if version.Version == version.DevelopmentVersion {
|
||||||
// running devel version
|
// running devel version
|
||||||
lg.Debug().Msg("ignore check version on devel version")
|
lg.Debug().Msg("version checking ignored on development version")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user