Skip to content

make generate-golangci-lint-config clobbers local exclusions added to the local config. #295

Description

@wallrj

make generate-golangci-lint-config always overrides lists in the local config.

There's the a suggestion in https://stackoverflow.com/a/67036496

To appends arrays instead of overriding them, simply add a + after the merge operator (*).
https://mikefarah.gitbook.io/yq/operators/multiply-merge#merge-appending-arrays

But that doesn't work , because it duplicates the values that are already present in the local config file.

Originally posted by @wallrj in cert-manager/cert-manager#7752 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions