diff --git a/shard.lock b/shard.lock index 6eee6f8..ec3445d 100644 --- a/shard.lock +++ b/shard.lock @@ -2,7 +2,7 @@ version: 2.0 shards: action-controller: git: https://github.com/spider-gazelle/action-controller.git - version: 3.5.1 + version: 3.5.2 ameba: git: https://github.com/crystal-ameba/ameba.git diff --git a/shard.yml b/shard.yml index d218609..855a9dd 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: placeos-compiler -version: 3.3.0 +version: 3.3.1 dependencies: placeos-driver: diff --git a/spec/compiler_spec.cr b/spec/compiler_spec.cr index 167d06b..8bf78de 100644 --- a/spec/compiler_spec.cr +++ b/spec/compiler_spec.cr @@ -36,7 +36,6 @@ module PlaceOS it "should clone and install a repository" do Compiler.clone_and_install("rwlock", "https://github.com/spider-gazelle/readers-writer") File.file?(File.expand_path("./repositories/rwlock/shard.yml")).should be_true - File.directory?(File.expand_path("./repositories/rwlock/bin")).should be_true end it "should clone and install a repository branch" do diff --git a/src/placeos-compiler/compiler.cr b/src/placeos-compiler/compiler.cr index 408d400..98840bc 100644 --- a/src/placeos-compiler/compiler.cr +++ b/src/placeos-compiler/compiler.cr @@ -128,7 +128,7 @@ module PlaceOS::Compiler # operations in a single lock. i.e. clone + shards install GitCommands.repo_lock(repo_dir).write do # First check if the dependencies are satisfied - result = ExecFrom.exec_from(repo_dir, "shards", {"--no-color", "check"}) + result = ExecFrom.exec_from(repo_dir, "shards", {"--no-color", "check", "--production"}) check_output = result[:output].to_s check_exit_code = result[:exit_code] @@ -139,7 +139,7 @@ module PlaceOS::Compiler } else # Otherwise install shards - result = ExecFrom.exec_from(repo_dir, "shards", {"--no-color", "install"}) + result = ExecFrom.exec_from(repo_dir, "shards", {"--no-color", "install", "--production"}) { exit_status: result[:exit_code], output: result[:output].to_s,