aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-04 19:00:11 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:58 +0200
commit804a30bffb5b66b3ee58c30fe5641d27b083b6fb (patch)
treed375fa5ed3113ba199fa9d1957cc51cb29c5d753
parentbca6bb2d6e00188c516c91d38ff8a67d0544cf22 (diff)
Use my own domain instead of gitlab for packages
-rw-r--r--README.md2
-rw-r--r--src/Package.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7ba2f40..5d1db06 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Simple Build System for Native Languages
Sibs is inspired by [Cargo](https://github.com/rust-lang/cargo/), you can think of it like a C/C++/Zig version of Cargo. Sibs can build cmake projects as well, so you can use sibs with existing cmake projects with minimal work.
-List of packages can be found at https://gitlab.com/DEC05EBA/sibs_packages/raw/master/packages.json
+List of packages can be found at https://git.dec05eba.com/sibs-packages/plain/packages.json (currently in progress of moving existing sibs packages from github to git.dec05eba.com).
# Usage
```
diff --git a/src/Package.cpp b/src/Package.cpp
index 925de82..a2c1681 100644
--- a/src/Package.cpp
+++ b/src/Package.cpp
@@ -10,6 +10,8 @@
using namespace std;
using namespace rapidjson;
+// Cache of package list, only stored in memory right now.
+// TODO: Store this in a file as well, and update it when the remote package list updates
static Document *packageList = nullptr;
namespace sibs
@@ -134,7 +136,7 @@ namespace sibs
Result<PackageMetadata> Package::getPackage(const char *packageName, const PackageVersionRange &versionRange, Platform platform)
{
- Result<Document*> packageList = Package::getPackageList("https://gitlab.com/DEC05EBA/sibs_packages/raw/master/packages.json");
+ Result<Document*> packageList = Package::getPackageList("https://git.dec05eba.com/sibs-packages/plain/packages.json");
if(!packageList)
return Result<PackageMetadata>::Err(packageList);