-
Notifications
You must be signed in to change notification settings - Fork 78
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
Backport PR #2743 to release/v1.7 for refactor dockerfiles and update gitattributes #2745
Open
vdaas-ci
wants to merge
1
commit into
release/v1.7
Choose a base branch
from
backport/release/v1.7/refactor/docker/dockergen-and-gitattributes
base: release/v1.7
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+102
−29
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +94,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/agent /usr/bin/agent | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/agent"] | ||
ENTRYPOINT ["/usr/bin/agent"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -95,4 +96,4 @@ COPY --from=builder /usr/bin/faiss /usr/bin/faiss | |
COPY cmd/agent/core/faiss/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/faiss"] | ||
ENTRYPOINT ["/usr/bin/faiss"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -94,4 +95,4 @@ COPY --from=builder /usr/bin/ngt /usr/bin/ngt | |
COPY cmd/agent/core/ngt/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/ngt"] | ||
ENTRYPOINT ["/usr/bin/ngt"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -84,4 +85,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/sidecar /usr/bin/sidecar | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/sidecar"] | ||
ENTRYPOINT ["/usr/bin/sidecar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM tonistiigi/binfmt:master AS builder | ||
FROM tonistiigi/binfmt:master AS builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM ubuntu:devel AS builder | ||
FROM ubuntu:devel AS builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM moby/buildkit:master AS builder | ||
FROM moby/buildkit:master AS builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -16,4 +17,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM docker/buildkit-syft-scanner:edge AS scanner | ||
FROM docker/buildkit-syft-scanner:edge AS scanner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -127,4 +128,4 @@ RUN --mount=type=bind,target=.,rw \ | |
&& rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
ENTRYPOINT ["/bin/bash"] | ||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -145,4 +146,4 @@ RUN --mount=type=bind,target=.,rw \ | |
&& make faiss/install \ | ||
&& rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
USER root:root | ||
kpango marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/discoverer /usr/bin/discoverer | |
COPY cmd/discoverer/k8s/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/discoverer"] | ||
ENTRYPOINT ["/usr/bin/discoverer"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -92,4 +93,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/client /usr/bin/client | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/client"] | ||
ENTRYPOINT ["/usr/bin/client"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/filter /usr/bin/filter | |
COPY cmd/gateway/filter/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/filter"] | ||
ENTRYPOINT ["/usr/bin/filter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/lb /usr/bin/lb | |
COPY cmd/gateway/lb/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/lb"] | ||
ENTRYPOINT ["/usr/bin/lb"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/mirror /usr/bin/mirror | |
COPY cmd/gateway/mirror/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/mirror"] | ||
ENTRYPOINT ["/usr/bin/mirror"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-correction /usr/bin/index-correction | |
COPY cmd/index/job/correction/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-correction"] | ||
ENTRYPOINT ["/usr/bin/index-correction"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-creation /usr/bin/index-creation | |
COPY cmd/index/job/creation/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-creation"] | ||
ENTRYPOINT ["/usr/bin/index-creation"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-deletion /usr/bin/index-deletion | |
COPY cmd/index/job/deletion/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-deletion"] | ||
ENTRYPOINT ["/usr/bin/index-deletion"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/readreplica-rotate /usr/bin/readreplica-rotate | |
COPY cmd/index/job/readreplica/rotate/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/readreplica-rotate"] | ||
ENTRYPOINT ["/usr/bin/readreplica-rotate"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-save /usr/bin/index-save | |
COPY cmd/index/job/save/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-save"] | ||
ENTRYPOINT ["/usr/bin/index-save"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index-operator /usr/bin/index-operator | |
COPY cmd/index/operator/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index-operator"] | ||
ENTRYPOINT ["/usr/bin/index-operator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/index /usr/bin/index | |
COPY cmd/manager/index/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/index"] | ||
ENTRYPOINT ["/usr/bin/index"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -106,4 +107,4 @@ COPY --from=builder /opt/helm/charts/vald /opt/helm/charts/vald | |
COPY --from=builder /opt/helm/charts/vald-helm-operator /opt/helm/charts/vald-helm-operator | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] | ||
ENTRYPOINT ["/usr/bin/helm-operator", "run", "--watches-file=/opt/helm/watches.yaml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +94,4 @@ COPY --from=builder /usr/bin/job /usr/bin/job | |
COPY cmd/tools/benchmark/job/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/job"] | ||
ENTRYPOINT ["/usr/bin/job"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +86,4 @@ COPY --from=builder /usr/bin/operator /usr/bin/operator | |
COPY cmd/tools/benchmark/operator/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/operator"] | ||
ENTRYPOINT ["/usr/bin/operator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +94,4 @@ COPY --from=builder /usr/bin/loadtest /usr/bin/loadtest | |
COPY cmd/tools/cli/loadtest/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/loadtest"] | ||
ENTRYPOINT ["/usr/bin/loadtest"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Warning: The
merge=ours
strategy for critical files needs reconsiderationBased on the repository scan, this merge strategy poses significant risks:
go.mod
andgo.sum
at root level control project dependencies*.json
schema files undercharts/
define Helm configurationsapis/swagger/v1/**/*.swagger.json
assets/
contain important documentation diagramsUsing
merge=ours
will silently keep our version during merges, potentially:Recommend removing these merge strategy entries or switching to manual conflict resolution for these files.
🔗 Analysis chain
Caution: Review the use of
merge=ours
strategy.Using
merge=ours
for these files automatically keeps our version during merge conflicts, which could be risky:*.mod
and*.sum
: Could lead to incorrect dependency resolution*.json
: Might silently override important configuration changes*.svg
: Could lose intentional visual changesConsider if
merge=union
or manual conflict resolution would be more appropriate for some of these files.Let's check the frequency of merge conflicts for these files:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 327
Script:
Length of output: 627
Script:
Length of output: 4986