Skip to content

Commit 3a8253f

Browse files
committed
fix: enable --skip-signature and --skip-sha flags functionality
1 parent a1a206c commit 3a8253f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/tenv/subcmd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func newDetectCmd(versionManager versionmanager.VersionManager, params subCmdPar
8888
SilenceUsage: true,
8989
RunE: func(_ *cobra.Command, _ []string) error {
9090
conf.InitDisplayer(false)
91+
conf.InitValidation(skipSum, skipSign)
9192
conf.InitInstall(forceInstall, forceNoInstall)
9293

9394
detectedVersion, err := versionManager.Detect(context.Background(), false, noFallback)
@@ -165,6 +166,7 @@ If a parameter is passed, available options:
165166
},
166167
RunE: func(_ *cobra.Command, args []string) error {
167168
conf.InitDisplayer(false)
169+
conf.InitValidation(skipSum, skipSign)
168170

169171
ctx := context.Background()
170172
if len(args) == 0 {
@@ -431,6 +433,7 @@ Available parameter options:
431433
},
432434
RunE: func(_ *cobra.Command, args []string) error {
433435
conf.InitDisplayer(false)
436+
conf.InitValidation(skipSum, skipSign)
434437
conf.InitInstall(forceInstall, forceNoInstall)
435438

436439
return versionManager.Use(context.Background(), args[0], workingDir)

0 commit comments

Comments
 (0)