Adalennis opened a new issue, #9395:
URL: https://github.com/apache/hop/issues/9395
### Apache Hop version?
2.20.0
### Java version?
Java 21
### Operating system
macOS
### What happened?
Reproduced on 2.20.0 with the lint plugin 2.20.0; the code involved is
unchanged on main.
To find which files and connections the project refers to,
`LintProjectIndex` loads every pipeline, and `addPipelineReferences()` calls
`getResourceDependencies()` with the variables of the lint run. The pipeline's
parameters and their default values are not applied.
In the samples, `metadata-injection/process-files-with-mdi.hpl` has a
parameter `PRM_TYPE` (default `1`) and a Get file names transform with the mask
`person-info-${PRM_TYPE}.csv`. Unresolved, `${PRM_TYPE}` is read as a regular
expression, and every `hop lint` in the samples project logs an ERROR with a
stack trace of about 40 lines. That includes a run on a single file, because
the index is built from the whole project:
```
FileInputList - ERROR: org.apache.commons.vfs2.FileSystemException: Could
not find files in "file:///.../samples/files".
...
FileInputList - Caused by: java.util.regex.PatternSyntaxException: Illegal
repetition near index 14
FileInputList - person-info-${PRM_TYPE}.csv
```
Steps:
```
./hop lint -j samples config/projects/samples/transforms/abort-basic.hpl
```
The lint result is not affected (exit code 0 for this file), and the
pipeline itself runs fine (Get file names finds its file with `PRM_TYPE=1`).
### Issue Priority
Priority: 3
### Issue Component
Component: CLI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]