From: Brendan Hansen Date: Wed, 29 Nov 2023 01:50:19 +0000 (-0600) Subject: reverted breaking change in onyx package manager X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=8501611b184e63b4cf0d85aa2b3ebf90659521cf;p=onyx.git reverted breaking change in onyx package manager --- diff --git a/CHANGELOG b/CHANGELOG index 9eea6f2e..02031207 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,6 @@ Release v0.1.8 -------------- -Unreleased +November 28th, 2023 Additions: - MacOS compatibility diff --git a/scripts/onyx-pkg.onyx b/scripts/onyx-pkg.onyx index bfc85744..5d98f632 100644 --- a/scripts/onyx-pkg.onyx +++ b/scripts/onyx-pkg.onyx @@ -59,14 +59,6 @@ main :: (args: [] cstr) { return; } - if !Git.test_for_git() { - error_print("onyx package requires Git to be installed and accessible."); - info_print("", "Ensure Git is installed on your system.\n"); - os.exit(1); - return; - } - - loaded_config_file := false; defer if loaded_config_file do store_config_file(); @@ -953,14 +945,6 @@ Package :: struct { } Git :: struct { - test_for_git :: () -> bool { - p := os.process_spawn(git_path, .[]); - return switch os.process_wait(&p) { - case .Success => true; - case #default => false; - }; - } - get_full_repo_uri :: (package_search: str) -> str { for Known_Repositories { for proto: Protocols {