feat: upgrade libgit2 to 1.4.3

This commit is contained in:
Aleksey Kulikov 2022-04-13 11:44:56 +03:00
parent 94fbb8317f
commit f42f8a6e1b
10 changed files with 20 additions and 7 deletions

View file

@ -8,7 +8,7 @@ import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
import 'package:path/path.dart' as path;
import 'package:pub_cache/pub_cache.dart';
const libgit2Version = '1.4.2';
const libgit2Version = '1.4.3';
final libDir = path.join('.dart_tool', 'libgit2');
String getLibName() {
@ -25,7 +25,7 @@ String getLibName() {
return 'libgit2-$libgit2Version.$ext';
}
/// Checks if [File]/[Link] exists for an [uri].
/// Checks if [File]/[Link] exists for [path].
bool _doesFileExist(String path) {
return File(path).existsSync() || Link(path).existsSync();
}