Skip to content

Commit 65920ca

Browse files
authored
Merge pull request #834 from binacs/binacs/remove-vendoring
cleanup: remove vendoring
2 parents 5b7116b + 666529d commit 65920ca

File tree

7,503 files changed

+12
-2022058
lines changed

Some content is hidden

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

7,503 files changed

+12
-2022058
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ local-image: clean build-images
8181
push-images: EXTRA_ARGS="--push"
8282
push-images: build-images
8383

84-
.PHONY: update-vendor
85-
update-vendor:
86-
hack/update-vendor.sh
84+
.PHONY: update-gomod
85+
update-gomod:
86+
hack/update-gomod.sh
8787

8888
.PHONY: unit-test
8989
unit-test: install-envtest

doc/develop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ If you would like to build just the binaries you can do it by
3434
make
3535
```
3636
command.
37-
If you changed the branch or added new dependency you might need to regenerate vendor directory, for this you can use
37+
If you changed the branch or added new dependency you might need to update the go.mod, for this you can use
3838
```shell
39-
make update-vendor
39+
make update-gomod
4040
```
4141
command.
4242

hack/integration-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runTests() {
3333

3434
kube::log::status "Running integration test cases"
3535

36-
go test -timeout=40m -mod=vendor sigs.k8s.io/scheduler-plugins/test/integration/... ${ARGS:-}
36+
go test -timeout=40m sigs.k8s.io/scheduler-plugins/test/integration/... ${ARGS:-}
3737
}
3838

3939
trap cleanup EXIT

hack/unit-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ source "${TEMP_DIR}/setup-envtest"
2828
# get the args to pass to go test
2929
ARGS=("$@")
3030

31-
go test "${ARGS[@]}" -mod=vendor \
31+
go test "${ARGS[@]}" \
3232
sigs.k8s.io/scheduler-plugins/cmd/... \
3333
sigs.k8s.io/scheduler-plugins/pkg/... \
3434
sigs.k8s.io/scheduler-plugins/apis/...

hack/update-codegen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CRD_OPTIONS="crd:crdVersions=v1"
3131

3232
GOBIN=${TOOLS_BIN_DIR} ${GO_INSTALL} sigs.k8s.io/controller-tools/cmd/controller-gen ${CONTROLLER_GEN_BIN} ${CONTROLLER_GEN_VER}
3333

34-
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
34+
CODEGEN_PKG=${CODEGEN_PKG:-$(go list -f '{{.Dir}}' k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
3535

3636
source "${CODEGEN_PKG}/kube_codegen.sh"
3737

hack/update-vendor.sh renamed to hack/update-gomod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ source "${SCIPRT_ROOT}/hack/lib/init.sh"
2424
kube::golang::verify_go_version
2525

2626
go mod tidy
27-
go mod vendor
27+
go mod download

hack/verify-crdgen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CONTROLLER_GEN="${GOPATH}/bin/controller-gen"
3030
go install sigs.k8s.io/controller-tools/cmd/[email protected]
3131

3232
# Generate CRD
33-
api_paths="./apis/scheduling/v1alpha1/...;./vendor/github.com/k8stopologyawareschedwg/noderesourcetopology-api/pkg/apis/...;./vendor/github.com/diktyo-io/appgroup-api/pkg/apis/...;./vendor/github.com/diktyo-io/networktopology-api/pkg/apis/...;./vendor/sigs.k8s.io/security-profiles-operator/api/seccompprofile/v1beta1/..."
33+
api_paths="./apis/scheduling/v1alpha1/...;github.com/k8stopologyawareschedwg/noderesourcetopology-api/pkg/apis/topology/v1alpha2;github.com/diktyo-io/appgroup-api/pkg/apis/...;github.com/diktyo-io/networktopology-api/pkg/apis/...;sigs.k8s.io/security-profiles-operator/api/seccompprofile/v1beta1/..."
3434

3535
${CONTROLLER_GEN} ${CRD_OPTIONS} paths="${api_paths}" output:dir="./manifests/crds"
3636

site/content/en/docs/user-guide/develop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ If you would like to build just the binaries you can do it by
3838
make
3939
```
4040
command.
41-
If you changed the branch or added new dependency you might need to regenerate vendor directory, for this you can use
41+
If you changed the branch or added new dependency you might need to update the go.mod, for this you can use
4242
```shell
43-
make update-vendor
43+
make update-gomod
4444
```
4545
command.
4646

vendor/github.com/Azure/go-ansiterm/LICENSE

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

vendor/github.com/Azure/go-ansiterm/README.md

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

0 commit comments

Comments
 (0)