Skip to content

Commit

Permalink
Remove vendor directory (#903)
Browse files Browse the repository at this point in the history
* prepare for vendor folder removal

* Remove vendor directory

* update dep5 file, licenses

* fix code generation

* remove vendor from add_license_headers

* use controller-gen 0.14.0
  • Loading branch information
rishabh-11 authored Apr 17, 2024
1 parent 0e30203 commit 816eb56
Show file tree
Hide file tree
Showing 4,572 changed files with 384 additions and 1,516,721 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .ci/build
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ cd "${SOURCE_PATH}"

CGO_ENABLED=0 GO111MODULE=on go build \
-v \
-mod=vendor \
-o "${BINARY_PATH}/machine-controller-manager" \
cmd/machine-controller-manager/controller_manager.go
10 changes: 3 additions & 7 deletions .ci/check
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,16 @@ fi
cd "${SOURCE_PATH}"

# Build Golint.
go install -mod=vendor ./vendor/golang.org/x/lint/golint
go install golang.org/x/lint/golint

###############################################################################

PACKAGES="$(go list -mod=vendor -e ./... | grep -vE '/pkg/client|/pkg/apis|/pkg/openapi')"
PACKAGES="$(go list -e ./... | grep -vE '/pkg/client|/pkg/apis|/pkg/openapi')"
PACKAGES_DIRS="$(echo ${PACKAGES} | sed "s|github.com/gardener/machine-controller-manager|.|g")"

# Execute static code checks.
echo "Running go vet..."
go vet -mod=vendor ${PACKAGES}

# go fmt ignores -mod=vendor and performs module lookup (https://github.com/golang/go/issues/27841).
# Also go fmt is just alias for gofmt -l -w and does not support flags that gofmt does.
# That is why gofmt is used.
go vet ${PACKAGES}

# Execute automatic code formatting directive.
echo "Running gofmt..."
Expand Down
8 changes: 4 additions & 4 deletions .ci/test
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fi
cd "${SOURCE_PATH}"

# Install Ginkgo (test framework) to be able to execute the tests.
echo "Building Ginkgo frawework"
go install -mod=vendor ./vendor/github.com/onsi/ginkgo/v2/ginkgo
echo "Building Ginkgo framework"
go install github.com/onsi/ginkgo/v2/ginkgo
echo "Successfully built Ginkgo frawework"

##############################################################################
Expand All @@ -41,7 +41,7 @@ function test_with_coverage() {
sed -i -e '/mode: set/d' ${output_dir}/${coverprofile_file}
{( echo "mode: set"; cat ${output_dir}/${coverprofile_file} )} > ${output_dir}/${coverprofile_file}.temp
mv ${output_dir}/${coverprofile_file}.temp ${output_dir}/${coverprofile_file}
GOFLAGS="-mod=vendor" go tool cover -func ${output_dir}/${coverprofile_file}
go tool cover -func ${output_dir}/${coverprofile_file}
}

###############################################################################
Expand All @@ -51,7 +51,7 @@ if [[ "${SKIP_UNIT_TESTS}" != "" ]]; then
else
echo ">>>>> Invoking unit tests"
TEST_PACKAGES="cmd pkg"
GINKGO_COMMON_FLAGS="-r -timeout=1h0m0s --randomizeAllSpecs --randomizeSuites --failOnPending --progress -mod=vendor"
GINKGO_COMMON_FLAGS="-r -timeout=1h0m0s --randomizeAllSpecs --randomizeSuites --failOnPending --progress"
test_with_coverage
echo ">>>>> Finished executing unit tests"
fi
Expand Down
290 changes: 3 additions & 287 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -67,290 +67,6 @@ Copyright: gRPC authors
License: Apache-2.0

# --- vendor folder dependencies ---
Files: vendor/github.com/cespare/xxhash/v2/*
Copyright: 2024 github.com/cespare/xxhash/v2 contributors.
License: MIT

Files: vendor/github.com/modern-go/reflect2/*
Copyright: 2024 github.com/modern-go/reflect2 contributors.
License: Apache-2.0

Files: vendor/golang.org/x/time/*
Copyright: 2024 golang.org/x/time contributors.
License: BSD-3-Clause

Files: vendor/github.com/prometheus/client_golang/*
Copyright: 2024 github.com/prometheus/client_golang contributors.
License: Apache-2.0

Files: vendor/k8s.io/component-base/*
Copyright: 2024 k8s.io/component-base contributors.
License: Apache-2.0

Files: vendor/github.com/prometheus/client_model/*
Copyright: 2024 github.com/prometheus/client_model contributors.
License: Apache-2.0

Files: vendor/k8s.io/code-generator/*
Copyright: 2024 k8s.io/code-generator contributors.
License: Apache-2.0

Files: vendor/github.com/spf13/cobra/*
Copyright: 2024 github.com/spf13/cobra contributors.
License: Apache-2.0

Files: vendor/k8s.io/apimachinery/*
Copyright: 2024 k8s.io/apimachinery contributors.
License: Apache-2.0

Files: vendor/github.com/google/pprof/*
Copyright: 2024 github.com/google/pprof contributors.
License: Apache-2.0

Files: vendor/k8s.io/apimachinery/third_party/forked/golang/*
Copyright: 2024 k8s.io/apimachinery/third_party/forked/golang contributors.
License: BSD-3-Clause

Files: vendor/github.com/pkg/errors/*
Copyright: 2024 github.com/pkg/errors contributors.
License: BSD-2-Clause

Files: vendor/github.com/prometheus/common/*
Copyright: 2024 github.com/prometheus/common contributors.
License: Apache-2.0

Files: vendor/golang.org/x/term/*
Copyright: 2024 golang.org/x/term contributors.
License: BSD-3-Clause

Files: vendor/github.com/onsi/gomega/*
Copyright: 2024 github.com/onsi/gomega contributors.
License: MIT

Files: vendor/k8s.io/apiextensions-apiserver/*
Copyright: 2024 k8s.io/apiextensions-apiserver contributors.
License: Apache-2.0

Files: vendor/github.com/onsi/ginkgo/v2/*
Copyright: 2024 github.com/onsi/ginkgo/v2 contributors.
License: MIT

Files: vendor/github.com/cenkalti/backoff/v4/*
Copyright: 2024 github.com/cenkalti/backoff/v4 contributors.
License: MIT

Files: vendor/github.com/emicklei/go-restful/v3/*
Copyright: 2024 github.com/emicklei/go-restful/v3 contributors.
License: MIT

Files: vendor/golang.org/x/text/*
Copyright: 2024 golang.org/x/text contributors.
License: BSD-3-Clause

Files: vendor/github.com/matttproud/golang_protobuf_extensions/*
Copyright: 2024 github.com/matttproud/golang_protobuf_extensions contributors.
License: Apache-2.0

Files: vendor/golang.org/x/oauth2/*
Copyright: 2024 golang.org/x/oauth2 contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/*
Copyright: 2024 k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/gengo/*
Copyright: 2024 k8s.io/gengo contributors.
License: Apache-2.0

Files: vendor/github.com/golang/protobuf/*
Copyright: 2024 github.com/golang/protobuf contributors.
License: BSD-3-Clause

Files: vendor/github.com/golang/groupcache/*
Copyright: 2024 github.com/golang/groupcache contributors.
License: Apache-2.0

Files: vendor/k8s.io/klog/v2/*
Copyright: 2024 k8s.io/klog/v2 contributors.
License: Apache-2.0

Files: vendor/github.com/spf13/pflag/*
Copyright: 2024 github.com/spf13/pflag contributors.
License: BSD-3-Clause

Files: vendor/github.com/evanphx/json-patch/*
Copyright: 2024 github.com/evanphx/json-patch contributors.
License: BSD-3-Clause

Files: vendor/github.com/go-task/slim-sprig/*
Copyright: 2024 github.com/go-task/slim-sprig contributors.
License: MIT

Files: vendor/github.com/google/gofuzz/*
Copyright: 2024 github.com/google/gofuzz contributors.
License: Apache-2.0

Files: vendor/golang.org/x/sys/*
Copyright: 2024 golang.org/x/sys contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/apiserver/*
Copyright: 2024 k8s.io/apiserver contributors.
License: Apache-2.0

Files: vendor/github.com/go-logr/logr/*
Copyright: 2024 github.com/go-logr/logr contributors.
License: Apache-2.0

Files: vendor/k8s.io/utils/internal/third_party/forked/golang/*
Copyright: 2024 k8s.io/utils/internal/third_party/forked/golang contributors.
License: BSD-3-Clause

Files: vendor/github.com/google/go-cmp/*
Copyright: 2024 github.com/google/go-cmp contributors.
License: BSD-3-Clause

Files: vendor/github.com/beorn7/perks/*
Copyright: 2024 github.com/beorn7/perks contributors.
License: MIT

Files: vendor/github.com/google/uuid/*
Copyright: 2024 github.com/google/uuid contributors.
License: BSD-3-Clause

Files: vendor/github.com/Masterminds/semver/*
Copyright: 2024 github.com/Masterminds/semver contributors.
License: MIT

Files: vendor/golang.org/x/net/*
Copyright: 2024 golang.org/x/net contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/client-go/*
Copyright: 2024 k8s.io/client-go contributors.
License: Apache-2.0

Files: vendor/github.com/inconshreveable/mousetrap/*
Copyright: 2024 github.com/inconshreveable/mousetrap contributors.
License: Apache-2.0

Files: vendor/github.com/munnerz/goautoneg/*
Copyright: 2024 github.com/munnerz/goautoneg contributors.
License: BSD-3-Clause

Files: vendor/google.golang.org/appengine/*
Copyright: 2024 google.golang.org/appengine contributors.
License: Apache-2.0

Files: vendor/sigs.k8s.io/structured-merge-diff/v4/*
Copyright: 2024 sigs.k8s.io/structured-merge-diff/v4 contributors.
License: Apache-2.0

Files: vendor/github.com/json-iterator/go/*
Copyright: 2024 github.com/json-iterator/go contributors.
License: MIT

Files: vendor/github.com/josharian/intern/*
Copyright: 2024 github.com/josharian/intern contributors.
License: MIT

Files: vendor/gopkg.in/yaml.v2/*
Copyright: 2024 gopkg.in/yaml.v2 contributors.
License: MIT

Files: vendor/gopkg.in/yaml.v3/*
Copyright: 2024 gopkg.in/yaml.v3 contributors.
License: Apache-2.0

Files: vendor/google.golang.org/protobuf/*
Copyright: 2024 google.golang.org/protobuf contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/api/*
Copyright: 2024 k8s.io/api contributors.
License: Apache-2.0

Files: vendor/github.com/go-openapi/swag/*
Copyright: 2024 github.com/go-openapi/swag contributors.
License: Apache-2.0

Files: vendor/github.com/mailru/easyjson/*
Copyright: 2024 github.com/mailru/easyjson contributors.
License: MIT

Files: vendor/github.com/imdario/mergo/*
Copyright: 2024 github.com/imdario/mergo contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/utils/*
Copyright: 2024 k8s.io/utils contributors.
License: Apache-2.0

Files: vendor/golang.org/x/mod/*
Copyright: 2024 golang.org/x/mod contributors.
License: BSD-3-Clause

Files: vendor/github.com/davecgh/go-spew/*
Copyright: 2024 github.com/davecgh/go-spew contributors.
License: ISC

Files: vendor/golang.org/x/tools/*
Copyright: 2024 golang.org/x/tools contributors.
License: BSD-3-Clause

Files: vendor/k8s.io/cluster-bootstrap/*
Copyright: 2024 k8s.io/cluster-bootstrap contributors.
License: Apache-2.0

Files: vendor/github.com/google/gnostic-models/*
Copyright: 2024 github.com/google/gnostic-models contributors.
License: Apache-2.0

Files: vendor/github.com/go-openapi/jsonpointer/*
Copyright: 2024 github.com/go-openapi/jsonpointer contributors.
License: Apache-2.0

Files: vendor/github.com/gogo/protobuf/*
Copyright: 2024 github.com/gogo/protobuf contributors.
License: BSD-3-Clause

Files: vendor/github.com/go-openapi/jsonreference/*
Copyright: 2024 github.com/go-openapi/jsonreference contributors.
License: Apache-2.0

Files: vendor/k8s.io/code-generator/third_party/forked/golang/*
Copyright: 2024 k8s.io/code-generator/third_party/forked/golang contributors.
License: BSD-3-Clause

Files: vendor/github.com/prometheus/procfs/*
Copyright: 2024 github.com/prometheus/procfs contributors.
License: Apache-2.0

Files: vendor/k8s.io/kube-openapi/*
Copyright: 2024 k8s.io/kube-openapi contributors.
License: Apache-2.0

Files: vendor/github.com/modern-go/concurrent/*
Copyright: 2024 github.com/modern-go/concurrent contributors.
License: Apache-2.0

Files: vendor/golang.org/x/lint/*
Copyright: 2024 golang.org/x/lint contributors.
License: BSD-3-Clause

Files: vendor/sigs.k8s.io/json/*
Copyright: 2024 sigs.k8s.io/json contributors.
License: Apache-2.0

Files: vendor/k8s.io/kube-openapi/pkg/validation/spec/*
Copyright: 2024 k8s.io/kube-openapi/pkg/validation/spec contributors.
License: Apache-2.0

Files: vendor/github.com/blang/semver/v4/*
Copyright: 2024 github.com/blang/semver/v4 contributors.
License: MIT

Files: vendor/gopkg.in/inf.v0/*
Copyright: 2024 gopkg.in/inf.v0 contributors.
License: BSD-3-Clause
# Files:
# Copyright:
# License:
9 changes: 0 additions & 9 deletions LICENSES/BSD-2-Clause.txt

This file was deleted.

11 changes: 0 additions & 11 deletions LICENSES/BSD-3-Clause.txt

This file was deleted.

8 changes: 0 additions & 8 deletions LICENSES/ISC.txt

This file was deleted.

9 changes: 0 additions & 9 deletions LICENSES/MIT.txt

This file was deleted.

Loading

0 comments on commit 816eb56

Please sign in to comment.