Skip to content

Commit

Permalink
chore(drivers): don't invoke compile check on core for RECOMPILE flags (
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis authored Nov 22, 2023
1 parent 19868e0 commit 579c552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/placeos-rest-api/controllers/drivers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ module PlaceOS::Api
raise "failed to load driver's repository"
end

raise Error::NotFound.new("Driver not compiled yet") if current_driver.recompile_commit?

compiled = self.class.driver_compiled?(current_driver, repository, request_id)
Log.info { "#{compiled ? "" : "not "}compiled" }

Expand Down

0 comments on commit 579c552

Please sign in to comment.