Skip to content

Commit e452857

Browse files
committed
Throw error early rather than warning
1 parent 5f323ca commit e452857

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

lib/init-action.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,15 @@ async function run(startedAt: Date) {
389389
logger,
390390
});
391391

392+
if (
393+
config.languages.includes(KnownLanguage.swift) &&
394+
process.platform === "linux"
395+
) {
396+
throw new ConfigurationError(
397+
`Swift analysis on Ubuntu runner images is no longer supported. Please migrate to a macOS runner.`,
398+
);
399+
}
400+
392401
if (repositoryPropertiesResult.isFailure()) {
393402
addNoLanguageDiagnostic(
394403
config,
@@ -499,15 +508,6 @@ async function run(startedAt: Date) {
499508
);
500509
}
501510

502-
if (
503-
config.languages.includes(KnownLanguage.swift) &&
504-
process.platform === "linux"
505-
) {
506-
logger.warning(
507-
`Swift analysis on Ubuntu runner images is no longer supported. Please migrate to a macOS runner if this affects you.`,
508-
);
509-
}
510-
511511
if (
512512
config.languages.includes(KnownLanguage.go) &&
513513
process.platform === "linux"

0 commit comments

Comments
 (0)