Open
Description
General information
crc might be setting boolean parameters incorrectly
Operating System
Windows
Hypervisor
Hyper-V
Did you run crc setup
before crc start
?
yes
Running on
Laptop
Steps to reproduce
test disable update check
CRC version
CRC status
CRC config
Host Operating System
windows 10
Expected behavior
env var set is readed correctly
Actual behavior
error parsing the command line created
CRC Logs
Step starting CRC with default bundle succeeds: command '$env:CRC_DISABLE_UPDATE_CHECK=true; crc start -p 'C:\Users\rhqp\crc-e2e\pull-secret' ', expected to succeed, exited with exit code: 1
Command stdout:
Command stderr: true : The term 'true' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:31
+ $env:CRC_DISABLE_UPDATE_CHECK=true; crc start -p 'C:\Users\rhqp\crc-e ...
+ ~~~~
+ CategoryInfo : ObjectNotFound: (true:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
level=debug msg="CRC version: 2.47.0+457b65\n"
level=debug msg="OpenShift version: 4.17.14\n"
Additional context
From a quick test:
PS C:\Users\crcqe> $env:CRC_DISABLE_UPDATE_CHECK="true"
PS C:\Users\crcqe> echo $env:CRC_DISABLE_UPDATE_CHECK
true
PS C:\Users\crcqe> $env:CRC_DISABLE_UPDATE_CHECK='true'
PS C:\Users\crcqe> echo $env:CRC_DISABLE_UPDATE_CHECK
true
PS C:\Users\crcqe> $env:CRC_DISABLE_UPDATE_CHECK=$true
PS C:\Users\crcqe> echo $env:CRC_DISABLE_UPDATE_CHECK
True
PS C:\Users\crcqe> $env:CRC_DISABLE_UPDATE_CHECK=true
true: The term 'true' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Work In Progress
Activity