Skip to content

Commit 2bdfd91

Browse files
committed
*: migration from gopkg to go modules
1 parent 042981b commit 2bdfd91

File tree

284 files changed

+847
-845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+847
-845
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go:
44
- "1.11"
55
- "1.12"
66

7-
go_import_path: gopkg.in/src-d/go-git.v4
7+
go_import_path: github.com/go-git/go-git/v5
88

99
env:
1010
- GIT_VERSION=master

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COVERAGE_REPORT = coverage.txt
1515
COVERAGE_MODE = atomic
1616

1717
ifneq ($(origin CI), undefined)
18-
WORKDIR := $(GOPATH)/src/gopkg.in/src-d/go-git.v4
18+
WORKDIR := $(GOPATH)/src/github.com/go-git/go-git/v5
1919
endif
2020

2121
build-git:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
![go-git logo](https://cdn.rawgit.com/src-d/artwork/02036484/go-git/files/go-git-github-readme-header.png)
2-
[![GoDoc](https://godoc.org/gopkg.in/src-d/go-git.v4?status.svg)](https://godoc.org/github.com/src-d/go-git) [![Build Status](https://travis-ci.org/src-d/go-git.svg)](https://travis-ci.org/src-d/go-git) [![Build status](https://ci.appveyor.com/api/projects/status/nyidskwifo4py6ub?svg=true)](https://ci.appveyor.com/project/mcuadros/go-git) [![codecov.io](https://codecov.io/github/src-d/go-git/coverage.svg)](https://codecov.io/github/src-d/go-git) [![Go Report Card](https://goreportcard.com/badge/github.com/src-d/go-git)](https://goreportcard.com/report/github.com/src-d/go-git)
2+
[![GoDoc](https://godoc.org/github.com/go-git/go-git/v5?status.svg)](https://godoc.org/github.com/src-d/go-git) [![Build Status](https://travis-ci.org/src-d/go-git.svg)](https://travis-ci.org/src-d/go-git) [![Build status](https://ci.appveyor.com/api/projects/status/nyidskwifo4py6ub?svg=true)](https://ci.appveyor.com/project/mcuadros/go-git) [![codecov.io](https://codecov.io/github/src-d/go-git/coverage.svg)](https://codecov.io/github/src-d/go-git) [![Go Report Card](https://goreportcard.com/badge/github.com/src-d/go-git)](https://goreportcard.com/report/github.com/src-d/go-git)
33

44
*go-git* is a highly extensible git implementation library written in **pure Go**.
55

6-
It can be used to manipulate git repositories at low level *(plumbing)* or high level *(porcelain)*, through an idiomatic Go API. It also supports several types of storage, such as in-memory filesystems, or custom implementations thanks to the [`Storer`](https://godoc.org/gopkg.in/src-d/go-git.v4/plumbing/storer) interface.
6+
It can be used to manipulate git repositories at low level *(plumbing)* or high level *(porcelain)*, through an idiomatic Go API. It also supports several types of storage, such as in-memory filesystems, or custom implementations thanks to the [`Storer`](https://godoc.org/github.com/go-git/go-git/v5/plumbing/storer) interface.
77

88
It's being actively developed since 2015 and is being used extensively by [source{d}](https://sourced.tech/) and [Keybase](https://keybase.io/blog/encrypted-git-for-everyone), and by many other libraries and tools.
99

@@ -21,7 +21,7 @@ Installation
2121
The recommended way to install *go-git* is:
2222

2323
```
24-
go get -u gopkg.in/src-d/go-git.v4/...
24+
go get -u github.com/go-git/go-git/v5/...
2525
```
2626

2727
> We use [gopkg.in](http://labix.org/gopkg.in) to version the API, this means that when `go get` clones the package, it's the latest tag matching `v4.*` that is cloned and not the master branch.

_examples/branch/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package main
33
import (
44
"os"
55

6-
"gopkg.in/src-d/go-git.v4"
7-
. "gopkg.in/src-d/go-git.v4/_examples"
8-
"gopkg.in/src-d/go-git.v4/plumbing"
6+
"github.com/go-git/go-git/v5"
7+
. "github.com/go-git/go-git/v5/_examples"
8+
"github.com/go-git/go-git/v5/plumbing"
99
)
1010

1111
// An example of how to create and remove branches or any other kind of reference.

_examples/checkout/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"os"
66

7-
"gopkg.in/src-d/go-git.v4"
8-
. "gopkg.in/src-d/go-git.v4/_examples"
9-
"gopkg.in/src-d/go-git.v4/plumbing"
7+
"github.com/go-git/go-git/v5"
8+
. "github.com/go-git/go-git/v5/_examples"
9+
"github.com/go-git/go-git/v5/plumbing"
1010
)
1111

1212
// Basic example of how to checkout a specific commit.

_examples/clone/auth/basic/access_token/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"os"
66

7-
git "gopkg.in/src-d/go-git.v4"
8-
. "gopkg.in/src-d/go-git.v4/_examples"
9-
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
7+
git "github.com/go-git/go-git/v5"
8+
. "github.com/go-git/go-git/v5/_examples"
9+
"github.com/go-git/go-git/v5/plumbing/transport/http"
1010
)
1111

1212
func main() {

_examples/clone/auth/basic/username_password/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"os"
66

7-
git "gopkg.in/src-d/go-git.v4"
8-
. "gopkg.in/src-d/go-git.v4/_examples"
9-
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
7+
git "github.com/go-git/go-git/v5"
8+
. "github.com/go-git/go-git/v5/_examples"
9+
"github.com/go-git/go-git/v5/plumbing/transport/http"
1010
)
1111

1212
func main() {

_examples/clone/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"os"
66

7-
"gopkg.in/src-d/go-git.v4"
8-
. "gopkg.in/src-d/go-git.v4/_examples"
7+
"github.com/go-git/go-git/v5"
8+
. "github.com/go-git/go-git/v5/_examples"
99
)
1010

1111
// Basic example of how to clone a repository using clone options.

_examples/commit/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"path/filepath"
88
"time"
99

10-
"gopkg.in/src-d/go-git.v4"
11-
. "gopkg.in/src-d/go-git.v4/_examples"
12-
"gopkg.in/src-d/go-git.v4/plumbing/object"
10+
"github.com/go-git/go-git/v5"
11+
. "github.com/go-git/go-git/v5/_examples"
12+
"github.com/go-git/go-git/v5/plumbing/object"
1313
)
1414

1515
// Basic example of how to commit changes to the current branch to an existing

_examples/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func tempFolder() string {
7575
func packageFolder() string {
7676
return filepath.Join(
7777
build.Default.GOPATH,
78-
"src", "gopkg.in/src-d/go-git.v4",
78+
"src", "github.com/go-git/go-git/v5",
7979
)
8080
}
8181

0 commit comments

Comments
 (0)