Skip to content

Commit 35fe301

Browse files
authored
Merge pull request #3208 from git-lfs/ttaylorr/go-mod
all: use Go modules instead of Glide
2 parents 6d67979 + 79f8e7c commit 35fe301

File tree

600 files changed

+139
-48209
lines changed

Some content is hidden

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

600 files changed

+139
-48209
lines changed

.circleci/config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
bootstrap:
55
macos:
66
xcode: "9.2.0"
7-
working_directory: ~/go/src/github.com/git-lfs/git-lfs
7+
working_directory: ~/src/git-lfs
88
steps:
99
- checkout
1010
- run: brew update
@@ -14,20 +14,19 @@ jobs:
1414
- run: brew upgrade gettext || brew install gettext
1515
- run:
1616
command: git clone https://github.com/git/git.git git-source
17-
working_directory: ~/go/src/github.com/git-lfs/git-lfs
17+
working_directory: ~/src/git-lfs
1818
- run: echo "export GOPATH=$HOME/go" >> $BASH_ENV
19-
- run: go get -d -v github.com/spf13/cobra
20-
- run: go get -d -v github.com/ThomsonReutersEikon/go-ntlm/ntlm
2119
- save_cache:
2220
key: git-lfs-{{ .Branch }}-{{ .Revision }}
2321
paths:
2422
- /usr/local/Cellar
23+
- ~/src/git-lfs
2524
- ~/go
2625

2726
build_with_system_git:
2827
macos:
2928
xcode: "9.2.0"
30-
working_directory: ~/go/src/github.com/git-lfs/git-lfs
29+
working_directory: ~/src/git-lfs
3130
environment:
3231
GIT_SOURCE_REPO: https://github.com/git/git.git
3332
steps:
@@ -42,7 +41,7 @@ jobs:
4241
build_with_earliest_supported_git:
4342
macos:
4443
xcode: "9.2.0"
45-
working_directory: ~/go/src/github.com/git-lfs/git-lfs
44+
working_directory: ~/src/git-lfs
4645
environment:
4746
GIT_EARLIEST_SUPPORTED_VERSION: v2.0.0
4847
GIT_SOURCE_REPO: https://github.com/git/git.git
@@ -63,7 +62,7 @@ jobs:
6362
build_with_latest_git:
6463
macos:
6564
xcode: "9.2.0"
66-
working_directory: ~/go/src/github.com/git-lfs/git-lfs
65+
working_directory: ~/src/git-lfs
6766
environment:
6867
GIT_LATEST_SOURCE_BRANCH: master
6968
GIT_SOURCE_REPO: https://github.com/git/git.git

.travis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ os:
88

99
env:
1010
global:
11+
- GIT_LFS_SRC_DIR="$HOME/src/git-lfs"
1112
- GIT_LFS_TEST_DIR="$HOME/git-lfs-tests"
1213
- GIT_SOURCE_REPO="https://github.com/git/git.git"
1314
- GIT_EARLIEST_SUPPORTED_VERSION="v2.0.0
@@ -21,6 +22,7 @@ matrix:
2122
os: linux
2223
before_script:
2324
- >
25+
cd "$GIT_LFS_SRC_DIR";
2426
git clone $GIT_SOURCE_REPO git-source;
2527
cd git-source;
2628
git checkout $GIT_LATEST_SOURCE_BRANCH;
@@ -31,6 +33,7 @@ matrix:
3133
os: linux
3234
before_script:
3335
- >
36+
cd "$GIT_LFS_SRC_DIR";
3437
git clone $GIT_SOURCE_REPO git-source;
3538
cd git-source;
3639
git checkout $GIT_EARLIEST_SUPPORTED_VERSION;
@@ -48,15 +51,9 @@ matrix:
4851

4952
before_install:
5053
- >
51-
repo=`basename $PWD`;
52-
localDir=`dirname $PWD`;
53-
cfDir="`dirname $localDir`/git-lfs";
54-
if [[ "$localDir" != "$cfDir" ]];
55-
then
56-
mv "$localDir" "$cfDir";
57-
cd ../../git-lfs/$repo;
58-
export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$repo;
59-
fi;
54+
mkdir -p "$(dirname "$GIT_LFS_SRC_DIR")";
55+
mv "$TRAVIS_BUILD_DIR" "$GIT_LFS_SRC_DIR";
56+
export TRAVIS_BUILD_DIR="$GIT_LFS_SRC_DIR";
6057
6158
install: true
6259

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ tests:
117117

118118
## Updating 3rd party packages
119119

120-
0. Update `glide.yaml`.
120+
0. Update `go.mod`.
121121
0. Run `make vendor` to update the code in the `vendor` directory.
122122
0. Commit the change. Git LFS vendors the full source code in the repository.
123123
0. Submit a pull request.

Makefile

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ EXTRA_GC_FLAGS =
4040
# GC_FLAGS are the union of the above two BUILTIN_GC_FLAGS and EXTRA_GC_FLAGS.
4141
GC_FLAGS = $(BUILTIN_GC_FLAGS) $(EXTRA_GC_FLAGS)
4242

43-
# GLIDE is the name of the 'glide' binary used to manage vendored dependencies.
44-
GLIDE ?= glide
45-
4643
# RONN is the name of the 'ronn' program used to generate man pages.
4744
RONN ?= ronn
4845
# RONN_EXTRA_ARGS are extra arguments given to the $(RONN) program when invoked.
@@ -205,7 +202,6 @@ resource.syso : \
205202
versioninfo.json script/windows-installer/git-lfs-logo.bmp \
206203
script/windows-installer/git-lfs-logo.ico \
207204
script/windows-installer/git-lfs-wizard-image.bmp
208-
@$(GO) get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
209205
$(GO) generate
210206

211207
# RELEASE_TARGETS is the set of all release artifacts that we generate over a
@@ -298,17 +294,16 @@ test : fmt
298294
integration : bin/git-lfs$(X)
299295
make -C t test
300296

301-
# glide.lock is the permanent record of the glide.yaml file, and it is built by
302-
# running 'glide update'.
303-
glide.lock : glide.yaml
304-
$(GLIDE) update
297+
# go.sum is a lockfile based on the contents of go.mod.
298+
go.sum : go.mod
299+
$(GO) mod verify >/dev/null
305300

306-
# vendor updates the glide.lock-file, and installs vendored dependencies into
301+
# vendor updates the go.sum-file, and installs vendored dependencies into
307302
# the vendor/ sub-tree, removing sub-packages (listed below) that are unused by
308-
# Git LFS.
303+
# Git LFS as well as test code.
309304
.PHONY : vendor
310-
vendor : glide.lock
311-
$(GLIDE) install
305+
vendor : go.mod
306+
$(GO) mod vendor -v
312307
$(RM) -r vendor/github.com/ThomsonReutersEikon/go-ntlm/utils
313308
$(RM) -r vendor/github.com/davecgh/go-spew
314309
$(RM) -r vendor/github.com/pmezard/go-difflib
@@ -332,9 +327,13 @@ endif
332327
# are vendored in via vendor (see: above).
333328
.PHONY : lint
334329
lint : $(SOURCES)
335-
@$(GO) list -f '{{ join .Deps "\n" }}' . \
336-
| $(XARGS) $(GO) list -f '{{ if not .Standard }}{{ .ImportPath }}{{ end }}' \
337-
| $(GREP) -v "github.com/git-lfs/git-lfs" || exit 0
330+
@! $(GO) list -f '{{ join .Deps "\n" }}' . \
331+
| $(XARGS) $(GO) list -f \
332+
'{{ if and (not .Standard) (not .Module) }} \
333+
{{ .ImportPath }} \
334+
{{ end }}' \
335+
| $(GREP) -v "github.com/git-lfs/git-lfs" \
336+
| $(GREP) "."
338337

339338
# MAN_ROFF_TARGETS is a list of all ROFF-style targets in the man pages.
340339
MAN_ROFF_TARGETS = man/git-lfs-checkout.1 \

appveyor.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ environment:
88
GOPATH: C:\Users\appveyor\go
99
MSYSTEM: MINGW64
1010

11-
clone_folder: $(GOPATH)\src\github.com\git-lfs\git-lfs
11+
clone_folder: $(USERPROFILE)\src\git-lfs
1212

1313
install:
1414
- rd C:\Go /s /q
@@ -17,12 +17,15 @@ install:
1717
- curl -sL -o go1.11.windows-amd64.zip https://storage.googleapis.com/golang/go1.11.windows-amd64.zip
1818
- 7z x go1.11.windows-amd64.zip -oC:\ >nul
1919
- C:\go\bin\go version
20+
- cd %USERPROFILE%\src
21+
- C:\go\bin\go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
22+
- cd %USERPROFILE%\src\git-lfs
2023
- cinst InnoSetup -y
2124
- cinst strawberryperl -y
2225
- refreshenv
2326
- cinst make
2427
- refreshenv
25-
- set PATH=%GOPATH%\bin\windows_386;%PATH%
28+
- set PATH=%GOPATH%\bin;%PATH%
2629
- ps: |
2730
echo "Go directories in machine PATH environment:"
2831
[environment]::GetEnvironmentVariable("PATH","Machine").split(";") | Select-String -Pattern "\\go\\"

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/make -f
22

33
export DH_OPTIONS
4-
export GO15VENDOREXPERIMENT=1
4+
export GO111MODULE=on
55

66
#dh_golang doesn't do this for you
77
ifeq ($(DEB_HOST_ARCH), i386)

glide.lock

Lines changed: 0 additions & 56 deletions
This file was deleted.

glide.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

go.mod

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module github.com/git-lfs/git-lfs
2+
3+
require (
4+
github.com/ThomsonReutersEikon/go-ntlm v0.0.0-20151030004737-b00ec39bbdd0
5+
github.com/alexbrainman/sspi v0.0.0-20180125232955-4729b3d4d858
6+
github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2 // indirect
7+
github.com/git-lfs/gitobj v0.0.0-20180705162808-0fcb9c3796fa
8+
github.com/git-lfs/go-netrc v0.0.0-20180525200031-e0e9ca483a18
9+
github.com/git-lfs/wildmatch v0.0.0-20180706170425-b31c34466d64
10+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
11+
github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76
12+
github.com/olekukonko/ts v0.0.0-20140412220145-ecf753e7c962
13+
github.com/pkg/errors v0.0.0-20170505043639-c605e284fe17
14+
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0 // indirect
15+
github.com/rubyist/tracerx v0.0.0-20170927163412-787959303086
16+
github.com/spf13/cobra v0.0.0-20150809222549-c55cdf33856a
17+
github.com/spf13/pflag v0.0.0-20150814225300-580b9be06c33 // indirect
18+
github.com/stretchr/testify v0.0.0-20160504130155-6cb3b85ef5a0
19+
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
20+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
21+
github.com/xeipuuv/gojsonschema v0.0.0-20170210233622-6b67b3fab74d
22+
)

go.sum

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
github.com/ThomsonReutersEikon/go-ntlm v0.0.0-20151030004737-b00ec39bbdd0 h1:iBnLwXNz+Mz2K6MndIM9a4sLBb+TouHB8s0tvx16s4s=
2+
github.com/ThomsonReutersEikon/go-ntlm v0.0.0-20151030004737-b00ec39bbdd0/go.mod h1:0eFwySJYxbNw/r8cJ01IeztpJfwrgrmiLtYig80Yvrc=
3+
github.com/alexbrainman/sspi v0.0.0-20180125232955-4729b3d4d858 h1:OZQyEhf4BviydsRdmK4ryeJHotDLd7vL1X8+nnxXkfk=
4+
github.com/alexbrainman/sspi v0.0.0-20180125232955-4729b3d4d858/go.mod h1:976q2ETgjT2snVCf2ZaBnyBbVoPERGjUz+0sofzEfro=
5+
github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2 h1:5zdDAMuB3gvbHB1m2BZT9+t9w+xaBmK3ehb7skDXcwM=
6+
github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
7+
github.com/git-lfs/gitobj v0.0.0-20180705162808-0fcb9c3796fa h1:wXVStqoJoNE3tbW33kGIHBRVtUWL7GJxfEmDuBiueFo=
8+
github.com/git-lfs/gitobj v0.0.0-20180705162808-0fcb9c3796fa/go.mod h1:+OqrxLkyEiaSZ7Tz/McVIlPU+p69Dj25MaB3QqV4nN4=
9+
github.com/git-lfs/go-netrc v0.0.0-20180525200031-e0e9ca483a18 h1:7Th0eBA4rT8WJNiM1vppjaIv9W5WJinhpbCJvRJxloI=
10+
github.com/git-lfs/go-netrc v0.0.0-20180525200031-e0e9ca483a18/go.mod h1:70O4NAtvWn1jW8V8V+OKrJJYcxDLTmIozfi2fmSz5SI=
11+
github.com/git-lfs/wildmatch v0.0.0-20180706170425-b31c34466d64 h1:ZPW4Gapp3/5fc/LDTp0A/C+s74yZg9jVZBoVan0GSmM=
12+
github.com/git-lfs/wildmatch v0.0.0-20180706170425-b31c34466d64/go.mod h1:SdHAGnApDpnFYQ0vAxbniWR0sn7yLJ3QXo9RRfhn2ew=
13+
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
14+
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
15+
github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76 h1:i5TIRQpbCg4aJMUtVHIhkQnSw++Z405Z5pzqHqeNkdU=
16+
github.com/kr/pty v0.0.0-20150511174710-5cf931ef8f76/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
17+
github.com/olekukonko/ts v0.0.0-20140412220145-ecf753e7c962 h1:3ev7csw9n4tLCxb5mtYXooCeQIFmC8Iw+4VhrSBy4zk=
18+
github.com/olekukonko/ts v0.0.0-20140412220145-ecf753e7c962/go.mod h1:F/7q8/HZz+TXjlsoZQQKVYvXTZaFH4QRa3y+j1p7MS0=
19+
github.com/pkg/errors v0.0.0-20170505043639-c605e284fe17 h1:chPfVn+gpAM5CTpTyVU9j8J+xgRGwmoDlNDLjKnJiYo=
20+
github.com/pkg/errors v0.0.0-20170505043639-c605e284fe17/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
21+
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0 h1:GD+A8+e+wFkqje55/2fOVnZPkoDIu1VooBWfNrnY8Uo=
22+
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
23+
github.com/rubyist/tracerx v0.0.0-20170927163412-787959303086 h1:mncRSDOqYCng7jOD+Y6+IivdRI6Kzv2BLWYkWkdQfu0=
24+
github.com/rubyist/tracerx v0.0.0-20170927163412-787959303086/go.mod h1:YpdgDXpumPB/+EGmGTYHeiW/0QVFRzBYTNFaxWfPDk4=
25+
github.com/spf13/cobra v0.0.0-20150809222549-c55cdf33856a h1:pYw8mElqJwrz3T7QVT2EZw1Te6gHW+cOGsuOuRzNdRo=
26+
github.com/spf13/cobra v0.0.0-20150809222549-c55cdf33856a/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
27+
github.com/spf13/pflag v0.0.0-20150814225300-580b9be06c33 h1:JZTN3XaDcPNAKb/i98hWdKD3C0wNQ8ehJRQHcg9eQ10=
28+
github.com/spf13/pflag v0.0.0-20150814225300-580b9be06c33/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
29+
github.com/stretchr/testify v0.0.0-20160504130155-6cb3b85ef5a0 h1:aCHp55cT6UsXkzGy9PoE+pNlDIbLIwcqK35xEnAKWfw=
30+
github.com/stretchr/testify v0.0.0-20160504130155-6cb3b85ef5a0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
31+
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=
32+
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
33+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
34+
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
35+
github.com/xeipuuv/gojsonschema v0.0.0-20170210233622-6b67b3fab74d h1:BJPiQVOMMtJsJIkrF4T6K3RKbzqr7rkaybMk33dlGUo=
36+
github.com/xeipuuv/gojsonschema v0.0.0-20170210233622-6b67b3fab74d/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs=
37+
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:qgOY6WgZOaTkIIMiVjBQcw93ERBE4m30iBm00nkL0i8=
38+
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
39+
rsc.io/quote v1.5.2 h1:w5fcysjrx7yqtD/aO+QwRjYZOKnaM9Uh2b40tElTs3Y=
40+
rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=
41+
rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=
42+
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

0 commit comments

Comments
 (0)