We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
version
1 parent a5e258b commit 855de59Copy full SHA for 855de59
action.yml
@@ -381,7 +381,18 @@ runs:
381
print $"(ansi yellow)Using platform default clang tools \(version not specified)(ansi reset)"
382
exit 0
383
}
384
- let version = $version_str | into int
+ let version = try {
385
+ $version_str | into int
386
+ } catch {
387
+ print "Version is not an integer"
388
+ if not ($version_str | path exists) {
389
+ print "(ansi red)Error: Version must be an integer or a valid path to installed clang tools binaries(ansi reset)"
390
+ exit 1
391
+ } else {
392
+ print $"(ansi yellow)Using custom clang tools installation at path: ($version_str)(ansi reset)"
393
+ exit 0
394
+ }
395
396
397
$uv_args = [run --no-sync --project $action_path --directory (pwd)]
398
if $verbosity {
0 commit comments