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 go mod replace usage #4732

Merged
merged 5 commits into from
May 11, 2022
Merged

Remove go mod replace usage #4732

merged 5 commits into from
May 11, 2022

Conversation

c-kruse
Copy link
Contributor

@c-kruse c-kruse commented May 4, 2022

What is this change?

  • Removes replace directives in our modules.
  • bumps develop/6 minimum to go 1.16
  • adds CI check to ensure nobody accidentally includes a replace directive.
  • Updates CONTRIBUTING.md with suggestions on working across modules.

Why is this change necessary?

To force us to keep sensu-go's internal dependencies updated.

Does your change need a Changelog entry?

Probably not. Does not affect the product.

Do you need clarification on anything?

N

Were there any complications while making this change?

I was hopeful to fit the CI check for replace directives in semgrep but didn't see any obvious ways to do so.

Have you reviewed and updated the documentation for this change? Is new documentation required?

N/A

How did you verify this change?

N/A

Is this change a patch?

N

c-kruse added 5 commits May 4, 2022 09:34
Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
@c-kruse c-kruse requested a review from amdprophet May 4, 2022 16:41
@c-kruse c-kruse self-assigned this May 4, 2022
@c-kruse c-kruse merged commit 8395674 into develop/6 May 11, 2022
@c-kruse c-kruse deleted the Remove-GoMod-Replace-Usage branch May 11, 2022 19:33
c-kruse added a commit that referenced this pull request May 12, 2022
* Remove go.mod replace directives from sensu modules

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* ignore go's multi-module workspace files

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* bump minimum go version to 1.16

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* Update CONTRIBUTING.md with multi module dev workflow

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* Add CircleCI test to check for replace directives

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
c-kruse added a commit that referenced this pull request May 19, 2022
* Remove go.mod replace directives from sensu modules

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* ignore go's multi-module workspace files

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* bump minimum go version to 1.16

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* Update CONTRIBUTING.md with multi module dev workflow

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* Add CircleCI test to check for replace directives

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
(cherry picked from commit 8395674)
c-kruse added a commit that referenced this pull request May 19, 2022
* Remove go.mod replace directives from sensu modules

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* ignore go's multi-module workspace files

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* bump minimum go version to 1.16

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* Update CONTRIBUTING.md with multi module dev workflow

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>

* Add CircleCI test to check for replace directives

Signed-off-by: Christian Kruse <ctkruse99@gmail.com>
(cherry picked from commit 8395674)

Update circleci config with new executors
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