git-lfs/debian
Taylor Blau 114e85c200 all: use Go Modules instead of Glide
Since we are now building on Go 1.11 (as of 074a2d4f (all: use Go 1.11
in CI, 2018-08-28)) and Go 1.11 supports Go Modules [1], let's stop
using Glide, and begin using Go Modules.

This involves a few things:

  * Teach the Makefile how to build go.sum files instead of glide.lock
    files.

  * Teach continuous integration services to build Git LFS in a
    non-$GOPATH environment, since (without setting GO111MODULE=on
    explicitly, which we choose not to do), this will break compiling
    Git LFS, because Go 1.11 will ignore modules present in a Go
    checkout beneath $GOPATH.

  * In order to do the above, let's also make sure that we are
    un-setting $GOCACHE in the environment, as this causes Go to work
    without modules support [2].

  * Because we're no longer building in a `$GOPATH`-based location,
    let's instruct the CircleCI base image to archive the new location,
    too.

  * Similarly, teach the RPM spec to build in a non-$GOPATH location.

  * By contrast, since we use dh_golang to build git-lfs binaries on
    Debian, let's wait until the upstream dh_golang package is released
    with support for Go 1.11 module support explicitly. Therefore, force
    GO111MODULE to be on so that we can build a copy of Git LFS whose
    checkout is within a $GOPATH.

Although the go.mod versions match the glide.yaml ones, the diff
attached is large because Go Modules do not vendor `_test.go` files,
whereas Glide does.

[1]: https://golang.org/doc/go1.11#modules
[2]: `GOCACHE=on` will be deprecated in Go 1.12, so this change makes
     sense for that reason, too.

Co-authored-by: brian m. carlson <bk2204@github.com>
2018-08-29 13:25:47 -04:00
..
source Add debian directory and gitignore temporary build files 2015-05-15 15:27:21 +00:00
changelog release: v2.5.0 2018-07-26 14:04:21 -05:00
compat Add debian directory and gitignore temporary build files 2015-05-15 15:27:21 +00:00
control Add git version dependency to debian package 2015-12-02 18:46:11 +00:00
copyright update other github/git-lfs references 2016-11-15 10:07:11 -07:00
git-lfs.lintian-overrides Some cleanup to make debian package pass lintian checks 2015-07-08 02:24:38 +00:00
git-lfs.manpages Fixed #719 missing /usr/share/man/man5/git-lfs-config.5.gz . 2016-04-15 15:59:28 +10:00
postinst Added --system option to install command. This option is invoked from post-install scripts in rpm/deb packages. 2016-06-30 12:05:30 +10:00
prerm Added postinst (git lfs install) and prerm (git lfs uninstall) scripts to Debian deb. These will run as root and so will operate at the new --system scope. 2016-06-30 12:01:48 +10:00
rules all: use Go Modules instead of Glide 2018-08-29 13:25:47 -04:00