Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

all: convert into a Go module #943

@mvdan

Description

@mvdan

Should be straightforward enough. Go modules support gopkg.in without any changes, so we don't have to break backwards compatibility. For example, this worked for me:

cd go-git
go mod init
go mod tidy

Also note that the // import "gopkg.in/src-d/go-git.v4" comment in doc.go should be removed once the commands above have been run, as Go modules make this enforcement of import paths obsolete.

Once we reach v5, it may make sense to transition to another module path, like sourced.tech/go-git/v5.

I've been helping a bit with modules, and have converted most of my repos to them - so I'm happy to help if there are any questions or issues.

cc @mcuadros @smola @campoy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions