changed: miscellaneous things
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 16 Jun 2023 21:11:28 +0000 (16:11 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 16 Jun 2023 21:11:28 +0000 (16:11 -0500)
core/runtime/platform/onyx/platform.onyx
core/std.onyx
scripts/onyx-pkg.onyx

index 5827d082725e0565af775a5438d8c7531da91104..b413b391fec3330953ebcfcb5ef7d274dc62a70c 100644 (file)
@@ -13,6 +13,9 @@ use runtime {
 #load "./fs"
 #load "./env"
 
+#load "core/onyx/cptr"
+#load "core/onyx/cbindgen"
+// #load "core/onyx/fault_handling"
 
 // Platform supports
 Supports_Files :: true
index 29cb384739cbb83a2ee6754b4a29f2fb46408b79..ad9a0a49ef790f4661a1db9b74754f87455966fb 100644 (file)
@@ -123,10 +123,6 @@ use runtime
 
 #if runtime.runtime == .Onyx {
     #load "./runtime/platform/onyx/platform"
-
-    #load "./onyx/cptr"
-    #load "./onyx/cbindgen"
-    #load "./onyx/fault_handling"
 }
 
 #if runtime.runtime == .Wasi   {
index 6d2c1e4b0cd47551490e900b2af1739ced252a4a..a5ca52e6fd4a2ebe5eef7079c0a6a0b13de1cf9d 100644 (file)
@@ -636,6 +636,7 @@ install_package :: (pack: Package, downgrade_if_necessary := false) -> (bool, in
 
             if installed_version->is_newer(pack.version) && !downgrade_if_necessary {
                 error_print("Refusing to downgrade '{}' from {} to {}.\n", pack.repo, installed_version, pack.version);
+                return false, "";
             }
 
             // :PRETTY