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

chore(loki): Have fewer go.mod and go.sum #10023

Closed
wants to merge 2 commits into from
Closed

Conversation

kavirajk
Copy link
Contributor

@kavirajk kavirajk commented Jul 24, 2023

What this PR does / why we need it:
Currently we have some different tools(inspect-chunk, lambda-promtail, etc) use their own versions of dependencies with their own go.mod and go.sum files.
This PR try to have single (go.mod and go.sum) dependencies for those tools.

One exception is may be the /operator. Leaving that out of scope now because that may need some more consensus and will take it different PR.

Another exception is /pkg/push package. Introduce via this PR with some valid use case.

Which issue(s) this PR fixes:
Fixes #NA

Special notes for your reviewer:

One of the main rationale for this is to make easy to track our dependencies (if it's on fewer places) and automate upgrades (for easy version upgrades and security patch upgrades)

Ignoring changes on /vendor directory, The changes are only in couple of directories and main go.mod and go.sum files.

Screenshot_2023-07-24_10-20-21

Checklist

kavirajk added 2 commits July 24, 2023 10:07
Currently we have some different tools use their own versions of dependencies with their own go.mod and go.sum files.
This PR try to have single (go.mod and go.sum) dependencies.

One exception is may be the `/operator`. Leaving that out of scope now because that may need some more consensus and will take it different PR.

Another exception is `/pkg/push` package

Signed-off-by: Kaviraj <[email protected]>
kavirajk added a commit that referenced this pull request Jul 24, 2023
**What this PR does / why we need it**:
This introduces following changes
1. change open-pull-requests-limit from 2 -> 5 for root level go.mod
dependencies
2. Add dependabot also other go.mod files in `/operator`.
3. Add dependabot tracking for docker images under `/cmd/loki/`


**Which issue(s) this PR fixes**:
Fixes #<issue number>

**Special notes for your reviewer**:
NOTES:
1. [There is go.mod cleanup PR open
](#10023) that make most some
internal tools to use just one `go.mod` at the root level.
2. Will add tracking to other docker images in other directories in
follow up PR

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)

Signed-off-by: Kaviraj <[email protected]>
@kavirajk kavirajk closed this May 13, 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.

1 participant