Component
Action
n/a
Expected
Better and actionable error message or fallback version
Actual
Since 4.0.0 inferring the checkout action version from classpath is the default.
If you have a workflow without checkout action, the error message does not make too much sense anymore.
It states
java.lang.IllegalStateException: actions/checkout is not found in the classpath! Either add a dependency on it (`@file:DependsOn("actions:checkout:<version>")`), or don't use CheckoutActionVersionSource.InferFromClasspath()
This was fine when InferFromClasspath was used explicitly.
But with it being used implicitly saying "don't use it" is not really applicable and not actionable for someone not knowing where it needs to be changed.
It would be better to tell the user what to use and how, like with the DependsOn part,
or to use a default version if none is found in the classpath which should anyway be a rare case.
(rare but it exists: https://github.com/Vampire/setup-wsl/blob/master/.github/workflows/verify-release.main.kts)
Workaround, if exists
n/a
Version
4.0.0
Component
Action
n/a
Expected
Better and actionable error message or fallback version
Actual
Since 4.0.0 inferring the checkout action version from classpath is the default.
If you have a workflow without checkout action, the error message does not make too much sense anymore.
It states
This was fine when
InferFromClasspathwas used explicitly.But with it being used implicitly saying "don't use it" is not really applicable and not actionable for someone not knowing where it needs to be changed.
It would be better to tell the user what to use and how, like with the
DependsOnpart,or to use a default version if none is found in the classpath which should anyway be a rare case.
(rare but it exists: https://github.com/Vampire/setup-wsl/blob/master/.github/workflows/verify-release.main.kts)
Workaround, if exists
n/a
Version
4.0.0