Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove all vendoring #294

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

jaypipes
Copy link
Contributor

The vendor/ directory makes mirror maintenance unnecessarily painful. Modern Go and modules are a cleaner, more maintainable way to manage dependencies.

This patch removes all use of Go vendoring and updates the Makefile targets to install dependent test tooling like mockery and git-semver into the _out/ directory instead of looking in a vendor/ directory.

Issue #293

Makefile Outdated
_out/git-semver: outdir
@go build -o _out/git-semver vendor/github.com/mdomke/git-semver/main.go
@GOBIN=$(shell pwd)/_out go install github.com/mdomke/git-semver/v6@latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

floating tags created a lot of pain in the past. Let's use [email protected] or any fixed, non-floating tag you prefer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed! :)

Copy link
Contributor

@ffromani ffromani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once we address the floating tag comment

The `vendor/` directory makes mirror maintenance unnecessarily painful.
Modern Go and modules are a cleaner, more maintainable way to manage
dependencies.

This patch removes all use of Go vendoring and updates the Makefile
targets to install dependent test tooling like `mockery` and
`git-semver` into the `_out/` directory instead of looking in a
`vendor/` directory.

Issue k8stopologyawareschedwg#293

Signed-off-by: Jay Pipes <[email protected]>
Copy link
Contributor

@ffromani ffromani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, LGTM

@ffromani ffromani merged commit ed100ff into k8stopologyawareschedwg:main May 21, 2024
6 checks passed
@ffromani ffromani mentioned this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants