Skip to content

Commit ff463d5

Browse files
committed
script/{lint,test}: fix spurious vendor-related import errors
1 parent 5e9fcdd commit ff463d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
deps=$(go list -f '{{join .Deps "\n"}}' . | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' | grep -v "github.com/github/git-lfs")
3+
deps=$(GO15VENDOREXPERIMENT=1 go list -f '{{join .Deps "\n"}}' . | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' | grep -v "github.com/github/git-lfs")
44

55
# exit 0 means non-vendored deps were found
66
if [ $? -eq 0 ];

script/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ $# -gt 0 ]; then
77
GO15VENDOREXPERIMENT=1 go test "./$1"
88
else
99
GO15VENDOREXPERIMENT=1 go test \
10-
$(go list ./... \
10+
$(GO15VENDOREXPERIMENT=1 go list ./... \
1111
| grep -v "github.com/olekukonko/ts" \
1212
| grep -v "github.com/technoweenie/go-contentaddressable" \
1313
)

0 commit comments

Comments
 (0)