Skip to content

Commit 86bf818

Browse files
authored
Merge pull request #114 from nginxinc/unvendor
Removes vendoring of dependencies
2 parents 6d041c6 + 6051226 commit 86bf818

File tree

192 files changed

+7
-67988
lines changed

Some content is hidden

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

192 files changed

+7
-67988
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ __pycache__/
1616
*.out
1717
coverage.*
1818

19-
# Kubernetes Generated files - skip generated files, except for vendored files
20-
!vendor/**/zz_generated.*
21-
2219
# editor and IDE paraphernalia
2320
.idea
2421
.vscode

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ linters:
4040
run:
4141
# 10 minute timeout for analysis
4242
timeout: 10m
43-
modules-download-mode: vendor
43+
modules-download-mode: mod
4444
skip-dirs-use-default: true
4545

4646
# Specific linter settings

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
PACKAGE = $(notdir $(patsubst %/,%,$(dir $(realpath $(lastword $(MAKEFILE_LIST))))))
22
OUT_DIR ?= build
3-
VENDOR_DIR ?= vendor
43
RESULTS_DIR ?= results
54
DOCKER_REGISTRY ?= local
65
DOCKER_TAG ?= latest
@@ -25,7 +24,6 @@ deps:
2524
go mod download
2625
go mod tidy
2726
go mod verify
28-
go mod vendor
2927

3028
deps-upgrade:
3129
GOFLAGS="" go get -u ./...
@@ -36,7 +34,7 @@ deps-upgrade:
3634
#######################################
3735
fmt:
3836
$(info Running goimports...)
39-
@goimports -w -e $$(find . -type f -name '*.go' -not -path "./vendor/*")
37+
@goimports -w -e $$(find . -type f -name '*.go')
4038

4139
test:
4240
$(info Running unit tests...)
@@ -60,7 +58,7 @@ lint-docker:
6058
docker run --rm -v "${PWD}":/app -w /app golangci/golangci-lint:v1.51.2 golangci-lint run
6159

6260
lint-shell:
63-
shellcheck -x $$(find . -name "*.sh" -type f -not -path "./vendor/*")
61+
shellcheck -x $$(find . -name "*.sh" -type f)
6462

6563
gen:
6664
go generate -x ./...

buffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// Creator abstracts file creation (to write configs to something other than files).
1616
type Creator interface {
17-
Create(string) (io.WriteCloser, error)
17+
Create(path string) (io.WriteCloser, error)
1818
Reset()
1919
}
2020

types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestDirective_String(t *testing.T) {
4040
},
4141
} {
4242
s := tf.directive.String()
43-
assert.Equal(t, s, tf.expected)
43+
assert.Equal(t, tf.expected, s)
4444
}
4545
}
4646

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func validExpr(d *Directive) bool {
6464
strings.HasSuffix(d.Args[e], ")") &&
6565
((l == 1 && len(d.Args[b]) > 2) || // empty expression single arg '()'
6666
(l == 2 && (len(d.Args[b]) > 1 || len(d.Args[e]) > 1)) || // empty expression two args '(', ')'
67-
(l > 2))
67+
(l > 2)) //nolint: mnd
6868
}
6969

7070
// prepareIfArgs removes parentheses from an `if` directive's arguments.

util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"encoding/json"
1212
"testing"
1313

14-
. "github.com/nginxinc/nginx-go-crossplane"
14+
. "github.com/nginxinc/nginx-go-crossplane" //nolint: revive
1515
)
1616

1717
//nolint:funlen

vendor/github.com/davecgh/go-spew/LICENSE

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

vendor/github.com/davecgh/go-spew/spew/bypass.go

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

vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

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

0 commit comments

Comments
 (0)