Skip to content

Commit

Permalink
reverted breaking change in onyx package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanfh committed Nov 29, 2023
1 parent a1a0c59 commit 8501611
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Release v0.1.8
--------------
Unreleased
November 28th, 2023

Additions:
- MacOS compatibility
Expand Down
16 changes: 0 additions & 16 deletions scripts/onyx-pkg.onyx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8501611

Please sign in to comment.