Skip to content
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

Support relative paths #2286

Open
aviramha opened this issue Mar 4, 2024 · 0 comments
Open

Support relative paths #2286

aviramha opened this issue Mar 4, 2024 · 0 comments

Comments

@aviramha
Copy link
Member

aviramha commented Mar 4, 2024

The filesystem feature bypasses (doesn't handle / reads locally) relative paths.
Recently we've had two cases where users asked for relative paths support.
The initial decision to ignore relative paths came from the notion that usually that'd be code and resources you'd want to get locally.
I think a good solution would be to get PWD from the remote process (available only when reading /proc/1 ?) or think of a better way to get it, then add in the config:

{
"feature": {
"fs": {
"read_only": ["$PWD/conf"]
}
}
}

i.e recognizing "$PWD" in the beginning as the marker, another option would be to add new config but that would be annoying.
The idea is that we don't alter current behavior (relative paths are still resolved locally by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant