Add support for Go 1.11 modules #477

Merged
lhchavez merged 1 commits from patch-1 into master 2019-01-07 10:00:59 -06:00
lhchavez commented 2019-01-06 09:35:08 -06:00 (Migrated from github.com)

This change adds a go.mod file. An empty file is sufficient since this
project has no external dependencies. For people that want to use the static
version of libgit2, this module can be vendored and the following can be added
to their go.mod file:

replace github.com/libgit2/git2go => ./vendor/github.com/libgit2/git2go
This change adds a `go.mod` file. An empty file is sufficient since this project has no external dependencies. For people that want to use the static version of libgit2, this module can be vendored and the following can be added to their `go.mod` file: replace github.com/libgit2/git2go => ./vendor/github.com/libgit2/git2go
carlosmn commented 2019-01-07 06:30:51 -06:00 (Migrated from github.com)

Can you not use a project with go modules if the dependencies themselves aren't set up for it?

Can you not use a project with go modules if the dependencies themselves aren't set up for it?
lhchavez commented 2019-01-07 08:52:04 -06:00 (Migrated from github.com)

you can, if you want to use the dynamically-linked version. what you can't do is use the vendoring trick to be able to build the static library, since using a vendored module requires the module to be explicitly a module.

you can, if you want to use the dynamically-linked version. what you can't do is use the vendoring trick to be able to build the static library, since using a vendored module requires the module to be explicitly a module.
carlosmn commented 2019-01-07 10:00:53 -06:00 (Migrated from github.com)

Fair enough I guess.

Fair enough I guess.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#477
No description provided.