Browse Source

Update libgit to 0.27

Dashie der otter 2 months ago
parent
commit
3d2a65bb55
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
6 changed files with 7 additions and 14 deletions
  1. 3
    8
      .drone.yml
  2. 0
    2
      TODO.org
  3. 1
    1
      routers/gitxt/gitxt.go
  4. 1
    1
      routers/repo/archive.go
  5. 1
    1
      stuff/gite/gite.go
  6. 1
    1
      stuff/repository/repository.go

+ 3
- 8
.drone.yml View File

@@ -16,9 +16,7 @@ pipeline:
16 16
       TAGS: sqlite
17 17
       GOPATH: /srv/app
18 18
     commands:
19
-      - echo 'http://dl-cdn.alpinelinux.org/alpine/v3.7/main' >> /etc/apk/repositories
20
-      - apk update
21
-      - apk -U add libmagic file-dev libgit2=0.25.1-r4 libgit2-dev=0.25.1-r4
19
+      - apk -U add libmagic file-dev libgit2 libgit2-dev
22 20
       - make test
23 21
     when:
24 22
       event: [ push, tag, pull_request ]
@@ -30,9 +28,7 @@ pipeline:
30 28
       TAGS: sqlite
31 29
       GOPATH: /srv/app
32 30
     commands:
33
-      - echo 'http://dl-cdn.alpinelinux.org/alpine/v3.7/main' >> /etc/apk/repositories
34
-      - apk update
35
-      - apk -U add libmagic file-dev libgit2=0.25.1-r4 libgit2-dev=0.25.1-r4
31
+      - apk -U add libmagic file-dev libgit2 libgit2-dev
36 32
       - make clean
37 33
       - make vet
38 34
       - make lint
@@ -48,9 +44,8 @@ pipeline:
48 44
       TAGS: sqlite
49 45
       GOPATH: /srv/app
50 46
     commands:
51
-      - echo 'http://dl-cdn.alpinelinux.org/alpine/v3.7/main' >> /etc/apk/repositories
52 47
       - apk update
53
-      - apk -U add libmagic file-dev libgit2=0.25.1-r4 libgit2-dev=0.25.1-r4
48
+      - apk -U add libmagic file-dev libgit2 libgit2-dev
54 49
       - make clean
55 50
       - make build
56 51
       - make release-lx64

+ 0
- 2
TODO.org View File

@@ -6,8 +6,6 @@
6 6
 ** xorm update, breaking changes
7 7
 *** migrate to gorm ?
8 8
 
9
-** TODO Upgrade git2go to v26 (.3)
10
-*** Blocked by https://github.com/libgit2/git2go/issues/407
11 9
 ** TODO Add edit time on view gist
12 10
 ** TODO Add line-break option
13 11
 ** TODO Cleanup gogs imports of unused bits

+ 1
- 1
routers/gitxt/gitxt.go View File

@@ -14,7 +14,7 @@ import (
14 14
 	"fmt"
15 15
 	"github.com/Unknwon/paginater"
16 16
 	log "gopkg.in/clog.v1"
17
-	"gopkg.in/libgit2/git2go.v26"
17
+	"gopkg.in/libgit2/git2go.v27"
18 18
 	gotemplate "html/template"
19 19
 	"os"
20 20
 	"path/filepath"

+ 1
- 1
routers/repo/archive.go View File

@@ -8,7 +8,7 @@ import (
8 8
 	"dev.sigpipe.me/dashie/git.txt/stuff/gite"
9 9
 	"dev.sigpipe.me/dashie/git.txt/stuff/tool"
10 10
 	"github.com/Unknwon/com"
11
-	"gopkg.in/libgit2/git2go.v26"
11
+	"gopkg.in/libgit2/git2go.v27"
12 12
 	"os"
13 13
 	"path"
14 14
 	"strings"

+ 1
- 1
stuff/gite/gite.go View File

@@ -5,7 +5,7 @@ import (
5 5
 	"archive/zip"
6 6
 	"dev.sigpipe.me/dashie/git.txt/setting"
7 7
 	"github.com/rakyll/magicmime"
8
-	"gopkg.in/libgit2/git2go.v26"
8
+	"gopkg.in/libgit2/git2go.v27"
9 9
 	gotemplate "html/template"
10 10
 	"os"
11 11
 	"path/filepath"

+ 1
- 1
stuff/repository/repository.go View File

@@ -2,7 +2,7 @@ package repository
2 2
 
3 3
 import (
4 4
 	"dev.sigpipe.me/dashie/git.txt/setting"
5
-	git "gopkg.in/libgit2/git2go.v26"
5
+	git "gopkg.in/libgit2/git2go.v27"
6 6
 	"path"
7 7
 )
8 8
 

Loading…
Cancel
Save