From 259c97afbe01ef593513d4fc22f90dfe46e2a305 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 12 May 2026 17:46:02 +0300 Subject: [PATCH] remove all libgit mentions --- .github/workflows/ci.yml | 24 +------ .github/workflows/windows-libgit-types.bat | 3 - README.md | 6 -- git2.h | 74 ---------------------- tests/first_run.v | 1 - windows-libgit-types.bat | 3 - 6 files changed, 3 insertions(+), 108 deletions(-) delete mode 100644 .github/workflows/windows-libgit-types.bat delete mode 100644 git2.h delete mode 100644 windows-libgit-types.bat diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 380ef0a..21b07d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: with: path: gitly - name: Install Dependencies - run: sudo apt install libsqlite3-dev libgit2-dev + run: sudo apt install libsqlite3-dev - name: Install Markdown uses: actions/checkout@v3 with: @@ -83,8 +83,6 @@ jobs: with: repository: vlang/pcre path: vlib/pcre - - name: Install libgit2 - run: brew install libgit2 - name: Build V run: | make @@ -162,22 +160,6 @@ jobs: uses: actions/checkout@v3 with: path: gitly - - name: Checkout libgit2 - uses: actions/checkout@v3 - with: - repository: libgit2/libgit2 - path: thirdparty\libgit2 - - name: build libgit2 - run: | - mkdir thirdparty\libgit2\build - cd thirdparty\libgit2\build - cmake .. - cmake --build . - cp .\Debug\git2.dll D:\a\gitly\gitly\ - cp .\Debug\git2.exe D:\a\gitly\gitly - dir - cd ..\..\.. - dir - name: Install SQLite run: | .github\workflows\windows-install-sqlite.bat @@ -198,7 +180,7 @@ jobs: - name: Compile gitly run: | dir - .\v.exe -cflags "-L." -cflags "-Igitly/libgit2/include" -cflags "-Igitly/libgit2" -cc gcc gitly + .\v.exe -cc gcc gitly ubuntu-tcc: runs-on: ubuntu-latest @@ -214,7 +196,7 @@ jobs: with: path: gitly - name: Install Dependencies - run: sudo apt install libsqlite3-dev libgit2-dev + run: sudo apt install libsqlite3-dev - name: Install Markdown uses: actions/checkout@v3 with: diff --git a/.github/workflows/windows-libgit-types.bat b/.github/workflows/windows-libgit-types.bat deleted file mode 100644 index 15c03e6..0000000 --- a/.github/workflows/windows-libgit-types.bat +++ /dev/null @@ -1,3 +0,0 @@ - - -curl -L https://raw.githubusercontent.com/libgit2/libgit2/refs/heads/main/include/git2/types.h -o types.h \ No newline at end of file diff --git a/README.md b/README.md index b0a9aa8..6d0ea48 100644 --- a/README.md +++ b/README.md @@ -57,12 +57,6 @@ Required dependencies: * PostgreSQL client library (Ubuntu/Debian: `libpq-dev`, macOS: `brew install libpq`) * Markdown (`v install markdown`) * sassc -* libgit2 - -You can install libgit2 with: - * Ubuntu/Debian: `apt install libgit2-dev` - * FreeBSD: `pkg install libgit2` - * macOS: `brew install libgit2` ### Features diff --git a/git2.h b/git2.h deleted file mode 100644 index 3457e5f..0000000 --- a/git2.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (C) the libgit2 contributors. All rights reserved. - * - * This file is part of libgit2, distributed under the GNU GPL v2 with - * a Linking Exception. For full terms see the included COPYING file. - */ - -#ifndef INCLUDE_git_git_h__ -#define INCLUDE_git_git_h__ - -#include "git2/annotated_commit.h" -#include "git2/apply.h" -#include "git2/attr.h" -#include "git2/blob.h" -#include "git2/blame.h" -#include "git2/branch.h" -#include "git2/buffer.h" -#include "git2/cert.h" -#include "git2/checkout.h" -#include "git2/cherrypick.h" -#include "git2/clone.h" -#include "git2/commit.h" -#include "git2/common.h" -#include "git2/config.h" -#include "git2/credential.h" -#include "git2/deprecated.h" -#include "git2/describe.h" -#include "git2/diff.h" -#include "git2/email.h" -#include "git2/errors.h" -#include "git2/experimental.h" -#include "git2/filter.h" -#include "git2/global.h" -#include "git2/graph.h" -#include "git2/ignore.h" -#include "git2/index.h" -#include "git2/indexer.h" -#include "git2/mailmap.h" -#include "git2/merge.h" -#include "git2/message.h" -#include "git2/net.h" -#include "git2/notes.h" -#include "git2/object.h" -#include "git2/odb.h" -#include "git2/odb_backend.h" -#include "git2/oid.h" -#include "git2/pack.h" -#include "git2/patch.h" -#include "git2/pathspec.h" -#include "git2/proxy.h" -#include "git2/rebase.h" -#include "git2/refdb.h" -#include "git2/reflog.h" -#include "git2/refs.h" -#include "git2/refspec.h" -#include "git2/remote.h" -#include "git2/repository.h" -#include "git2/reset.h" -#include "git2/revert.h" -#include "git2/revparse.h" -#include "git2/revwalk.h" -#include "git2/signature.h" -#include "git2/stash.h" -#include "git2/status.h" -#include "git2/submodule.h" -#include "git2/tag.h" -#include "git2/transport.h" -#include "git2/transaction.h" -#include "git2/tree.h" -#include "git2/types.h" -#include "git2/version.h" -#include "git2/worktree.h" - -#endif diff --git a/tests/first_run.v b/tests/first_run.v index c2f728d..32dfcb2 100644 --- a/tests/first_run.v +++ b/tests/first_run.v @@ -143,7 +143,6 @@ fn remove_repos_dir_if_exists() ! { fn compile_gitly() { ilog('Compile gitly') - // TODO: gitly segfaults with mbedtls (some interference with libgit2 initialisation) on Ubuntu 20.04. Investigate why exactly and fix it. // Note that using `-d use_openssl` prevents tcc from working, so the compilation will be much slower: os.execute('v -d use_libbacktrace -cg -keepc -d use_openssl -o gitly.exe .') ilog('Compiled gitly.exe, size: ${os.file_size('gitly.exe')}') diff --git a/windows-libgit-types.bat b/windows-libgit-types.bat deleted file mode 100644 index 15c03e6..0000000 --- a/windows-libgit-types.bat +++ /dev/null @@ -1,3 +0,0 @@ - - -curl -L https://raw.githubusercontent.com/libgit2/libgit2/refs/heads/main/include/git2/types.h -o types.h \ No newline at end of file -- 2.39.5