From 9ee476dc851d4a29d3bba33da766e70abafb112d Mon Sep 17 00:00:00 2001 From: John Vasileff Date: Sun, 16 Oct 2016 08:41:25 -0400 Subject: [PATCH] don't require version when running default module --- .../com/vasileff/ceylon/dart/cli/CeylonRunDartTool.ceylon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ceylon-dart-cli/source/com/vasileff/ceylon/dart/cli/CeylonRunDartTool.ceylon b/ceylon-dart-cli/source/com/vasileff/ceylon/dart/cli/CeylonRunDartTool.ceylon index 909b86f0..6b620640 100644 --- a/ceylon-dart-cli/source/com/vasileff/ceylon/dart/cli/CeylonRunDartTool.ceylon +++ b/ceylon-dart-cli/source/com/vasileff/ceylon/dart/cli/CeylonRunDartTool.ceylon @@ -94,13 +94,15 @@ class CeylonRunDartTool() extends RepoUsingTool(repoUsingToolresourceBundle) { = ModuleUtil.moduleName(moduleString); value moduleVersion - = checkModuleVersionsOrShowSuggestions( + = if (moduleName == "default") + then "unversioned" + else (checkModuleVersionsOrShowSuggestions( repositoryManager, moduleName, ModuleUtil.moduleVersion(moduleString), ModuleQuery.Type.\iDART, null, null, null, null, - if (compile.empty) then "check" else compile) else ""; + if (compile.empty) then "check" else compile) else ""); value exitCode = runDartToplevel {