odo create: --s2i flag is broken #4048
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/Critical
We need to stop doing everything and fix this ASAP. It is making the project unusable.
/kind bug
If a devfile component already exists in the working file directory,
odo create <cmpType> --s2i
does not error out.Another bug has been introduced at https://github.com/openshift/odo/blame/master/pkg/odo/cli/component/create.go#L349 .
The
if !co.forceS2i { }
block has logic inside like https://github.com/openshift/odo/blame/master/pkg/odo/cli/component/create.go#L377 & https://github.com/openshift/odo/blame/master/pkg/odo/cli/component/create.go#L351 .. which requiresco.forceS2i == true
. This code will never execute since the outer blog requiresco.forceS2i == false
. Therefore, conflicting flags are not being checked properly either.The text was updated successfully, but these errors were encountered: