File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,17 @@ import (
12
12
// It only is exported here for backwards compatibility and the ability to use xk6 to build extended k6
13
13
func Execute () {
14
14
gs := state .NewGlobalState (context .Background ())
15
- internalcmd .NewLauncher (gs ).Launch ()
15
+
16
+ if gs .Flags .BinaryProvisioning {
17
+ internalcmd .NewLauncher (gs ).Launch ()
18
+ return
19
+ }
20
+
21
+ // If Binary Provisioning is not enabled, continue with the regular k6 execution path
22
+
23
+ // TODO: this is temporary defensive programming
24
+ // The Launcher has already the support for this specific execution path, but we decided to play safe here.
25
+ // After the v1.0 release, we want to fully delegate this control to the Launcher.
26
+ gs .Logger .Debug ("Binary Provisioning feature is disabled." )
27
+ internalcmd .ExecuteWithGlobalState (gs )
16
28
}
You can’t perform that action at this time.
0 commit comments