Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build fails with libgit2 1.8.1 #1

Open
urjaman opened this issue Jun 15, 2024 · 0 comments
Open

Build fails with libgit2 1.8.1 #1

urjaman opened this issue Jun 15, 2024 · 0 comments

Comments

@urjaman
Copy link

urjaman commented Jun 15, 2024

# github.com/libgit2/git2go/v34
wrapper.c: In function ‘set_callback_error’:
wrapper.c:107:25: warning: implicit declaration of function ‘git_error_set_str’; did you mean ‘giterr_set_str’? [-Wimplicit-function-declaration]
  107 |                         git_error_set_str(GIT_ERROR_CALLBACK, error_message);
      |                         ^~~~~~~~~~~~~~~~~
      |                         giterr_set_str
wrapper.c: In function ‘_go_git_populate_rebase_callbacks’:
wrapper.c:148:32: warning: assignment to ‘git_commit_create_cb’ {aka ‘int (*)(git_oid *, const git_signature *, const git_signature *, const char *, const char *, const git_tree *, unsigned int,  git_commit * const*, void *)’} from incompatible pointer type ‘int (*)(git_oid *, const git_signature *, const git_signature *, const char *, const char *, const git_tree *, size_t,  const git_commit **, void *)’ {aka ‘int (*)(git_oid *, const git_signature *, const git_signature *, const char *, const char *, const git_tree *, unsigned int,  const git_commit **, void *)’} [-Wincompatible-pointer-types]
  148 |         opts->commit_create_cb = commit_create_callback;
      |                                ^
# github.com/libgit2/git2go/v34
/home/builder/go/pkg/mod/github.com/nmeum/git2go/v34@v34.0.1-0.20231116120903-bda674cfdfbc/remote.go:986:27: cannot use cbool(opts.UpdateFetchhead) (value of type _Ctype_int) as _Ctype_uint value in assignment
make: *** [GNUmakefile:10: depp-index] Error 1
make: *** Waiting for unfinished jobs....
# github.com/libgit2/git2go/v34
wrapper.c: In function ‘set_callback_error’:
wrapper.c:107:25: warning: implicit declaration of function ‘git_error_set_str’; did you mean ‘giterr_set_str’? [-Wimplicit-function-declaration]
  107 |                         git_error_set_str(GIT_ERROR_CALLBACK, error_message);
      |                         ^~~~~~~~~~~~~~~~~
      |                         giterr_set_str
wrapper.c: In function ‘_go_git_populate_rebase_callbacks’:
wrapper.c:148:32: warning: assignment to ‘git_commit_create_cb’ {aka ‘int (*)(git_oid *, const git_signature *, const git_signature *, const char *, const char *, const git_tree *, unsigned int,  git_commit * const*, void *)’} from incompatible pointer type ‘int (*)(git_oid *, const git_signature *, const git_signature *, const char *, const char *, const git_tree *, size_t,  const git_commit **, void *)’ {aka ‘int (*)(git_oid *, const git_signature *, const git_signature *, const char *, const char *, const git_tree *, unsigned int,  const git_commit **, void *)’} [-Wincompatible-pointer-types]
  148 |         opts->commit_create_cb = commit_create_callback;
      |                                ^
# github.com/libgit2/git2go/v34
/home/builder/go/pkg/mod/github.com/nmeum/git2go/v34@v34.0.1-0.20231116120903-bda674cfdfbc/remote.go:986:27: cannot use cbool(opts.UpdateFetchhead) (value of type _Ctype_int) as _Ctype_uint value in assignment
make: *** [GNUmakefile:8: depp] Error 1

Based on my short googling of the first trouble (git_error_set_str), it looks like this is broken from libgit2 1.8 onwards? Anyways, i'll move onto finding some other static git preview generator.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant