Skip to content

Generating bash completions with --no-descriptions does not work #3567

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

Closed
4 tasks done
scop opened this issue Feb 5, 2023 · 1 comment
Closed
4 tasks done

Generating bash completions with --no-descriptions does not work #3567

scop opened this issue Feb 5, 2023 · 1 comment
Labels
area: CLI Related to CLI bug Something isn't working

Comments

@scop
Copy link
Contributor

scop commented Feb 5, 2023

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc.).
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.). (https://golangci-lint.run/usage/linters/)

Description of the problem

golangci-lint seems to be doing something with flags that makes cobra's built in bash completion generator --no-descriptions to break.

$ golangci-lint completion bash --help | grep -- --no-descriptions
      --no-descriptions   disable completion descriptions
$ golangci-lint completion bash --no-descriptions
ERRO Can't get config for command line: can't parse args: unknown flag: --no-descriptions 

Version of golangci-lint

$ golangci-lint version
golangci-lint has version 1.51.1 built from b87d2c19 on 2023-02-05T13:06:33Z

Configuration file

$ cat .golangci.yml
# not relevant

Go environment

$ go version && go env
# not relevant

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# not relevant

Code example or link to a public repository

// N/A
@scop scop added the bug Something isn't working label Feb 5, 2023
@ldez ldez added the area: CLI Related to CLI label Feb 5, 2023
@ldez
Copy link
Member

ldez commented Mar 3, 2024

Fixed by #4412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CLI Related to CLI bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants