-
Notifications
You must be signed in to change notification settings - Fork 122
[new-backend] spec hook - default:/ backend #4493
Comments
I worked around it by cutting all Key * defaultCutpoint = keyNew ("default:/", KEY_END);
KeySet * defaults = ksCut (dataKs, defaultCutpoint);
// backendDivide
// other phases
// backendMerge
ksAppend (ks, defaults);
ksDel (defaults);
keyDel(defaultCutpoint); |
As written in the docs ( So the cutting and re-adding might work now, but it is not a permanent solution. Instead we should probably create a |
So we should mount a backend containing |
I don't know. Wouldn't that just raise questions why |
I think type should be added by default to all the namespaces, see #690 |
With #4187 it would ultimately be the responsibility of a backend plugin to call I don't think this "added by default" approach is feasible. However, there is another option: Make I think we could just call This would make it so that by default (when (*) |
I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. |
I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. |
I've got the
spec
plugin and its copy hook in a state where it will generate thedefault:/
keys according to spec.However,
backendsDivide
fails because there is no backend fordefault:/
keys.Command:
kdb meta-get spec:/example/port default
spec.ini:
Expected result:
8080
Actual result:
Sorry, module kdb issued the error C01310:
Internal: Couldn't divide keys into mountpoints before poststorage. Please report this bug at https://issues.libelektra.org.
@kodebach can we just add a backend that is responsible for
default:/
keys? Or can we somehow preventdefault:/
keys from being passed tobackendsDivide
, but so that they are still part of the resulting keyset?The text was updated successfully, but these errors were encountered: