Skip to content
Discussion options

You must be logged in to vote

I created a script to try to reproduce the behavior:

setup.sh
#!/bin/bash -e

EXAMPLE_DIR='example-vendor'

cd /tmp/
rm -rf "${EXAMPLE_DIR}"
mkdir "${EXAMPLE_DIR}" && cd $_

## Create the module and set up git
git init -q
go mod init 'github.com/example/vendor'

## Create golangci-lint configuration file
cat >> .golangci.yml <<EOF
version: "2"

run:
  allow-parallel-runners: true

formatters:
  enable:
    - gci
    - gofmt
    - gofumpt
    - golines

  settings:
    gci:
      no-inline-comments: true
      no-prefix-comments: true
      custom-order: true
      no-lex-order: true
    gofmt:
      simplify: true
      rewrite-rules:
        - pattern: 'interface{}'
          replacemen…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ozkansen
Comment options

@ldez
Comment options

ldez Aug 25, 2025
Maintainer

@ozkansen
Comment options

@ldez
Comment options

ldez Aug 27, 2025
Maintainer

Answer selected by ozkansen
@ozkansen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants