lint command does not support glob patterns on resources
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the reported command using the lint command with a quoted resource glob, then compare its behavior with the run command, which handles the same pattern successfully. Trace how the lint command processes its --resources values and verify completion by confirming matching resource files are loaded instead of treating the glob literally.
Written by the indexing model from the issue text.
Description
I can read in the help that I can use glob patterns on resources when using the lint command:
NAME:
redpanda-connect lint - Parse Redpanda Connect configs and report any linting errors
USAGE:
redpanda-connect lint [command options]
DESCRIPTION:
Exits with a status code 1 if any linting errors are detected:
redpanda-connect lint ./configs/*.yaml
redpanda-connect lint ./foo.yaml ./bar.yaml
redpanda-connect lint ./configs/...
If a path ends with '...' then Redpanda Connect will walk the target and lint any
files with the .yaml or .yml extension.
OPTIONS:
--deprecated Print linting errors for the presence of deprecated fields. (default: false)
--labels Print linting errors when components do not have labels. (default: false)
--skip-env-var-check Do not produce lint errors when environment interpolations exist without defaults within configs but aren't defined. (default: false)
--resources value, -r value [ --resources value, -r value ] pull in extra resources from a file, which can be referenced the same as resources defined in the main config, supports glob patterns (requires quotes)
but in reality it does not work, if I try in one of my projects:
$ docker run --net host --env-file ${ENV} -v ./config:/c -v ./resources:/r -v ./templates:/t ${IMAGE} lint --skip-env-var-check -r "/r/resource.yaml" -t "/t/*.yaml" /c/config.yaml
/r/*.yaml(1,1) open /r/*.yaml: no such file or directory
but it runs fine with the run command
- Dominant language
- Go
- Stars
- 571
- Forks
- 121
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redpanda-data/benthos
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
redpanda-data/benthos#404 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
redpanda-data/benthos#503 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
redpanda-data/benthos#502 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 72/100
redpanda-data/benthos#481 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
redpanda-data/benthos#469 ·
Maintainers usually reply within 1 day
All issues in redpanda-data/benthos
Similar issues
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug P2 reliability
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
afreidah/s3-orchestrator#1564 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/gouroboros#2577 ·
Maintainers usually reply within 1 day
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day