-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[skip changelog]Fix issue in ResourceManager and nopfsPlugin about repo path #10492
Conversation
Triage notes:
|
@fengzie just to be sure this is triage properly, mind elaborating what you mean by "we need pass the Repo path for use, instead of getting from config.PathRoot(), which might not be the right one."? What would be example of state or use case where |
// Path is the repo file-system path | ||
Path() string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about in-memory or remote / virtual repos?
my understanding is that reading path from config
makes more sense, because we know that the config file in filesystem somewhere, and resourcemanager or nopfs files could live there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently only FSRepo is provided. For the other kind of repo implementations, there should be design to be compatible with resourcemanager or nopfs.
Line 366 in ce23fc7
func (r *FSRepo) Path() string { |
Hi @lidel , for If user create multiple instances through the SDK, then there might be issue. Line 57 in ce23fc7
|
For ResourceManager and nopfsPlugin, we need pass the Repo path for use, instead of getting from config.PathRoot(), which might not be the right one.
This will also fixes issue #10407 .