-
Notifications
You must be signed in to change notification settings - Fork 345
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
Modeline and file-based options on http/github endpoints #1522
Comments
should they follow the same path? i.e.
|
I'd better allow relative paths, so they work both when checking out the repo or running integrations remotely. |
It is a little complex as you don't know what is the relative path, assuming that you can run an integration with multiple sources i.e.
unless the relative path is related to the file being processed but that would add a slightly different behaviour when |
mh, wonder if we should add a
would be translated to:
but it could be smart and detect that all the required bits are also available locally and opt to use them directly |
The current approach, also for local files, is to ignore the current CWD dir in the shell. All file-based modeline options are always relative to the file that contains them. It can be the same for remote files. So the |
Yep but my point is that there's a different behaviour for the same option used inside a source and outside the source so property-file=application.properties may related to two different locations depending where the option is used, if that's acceptable I can work on it |
Oh, yes. I think this difference is already there. Take a file like To run the file and link it to the properties, you should run:
Because CLI options are not related to the file but to the current location. But if you want to link it using modeline, you should write this line in the file:
I don't see it as a big problem, we just need to document it ;) |
I guess we can do both so:
This would also mean that I think this would give the max flexibility but maybe it is too much ? |
This issue has been automatically marked as stale due to 90 days of inactivity. |
This #1515 introduces new ways to run integrations from the cloud directly.
What about modeline options that can be declared in the remote file?
E.g. the file declares something like:
Currently file-based options are ignored on remote URLs. But can we do better? ("possibly" avoiding infinite recursion).
The text was updated successfully, but these errors were encountered: