You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've introduced things like --config/--remote-config/--fs-config in dvc import/get/ls/[-url], but we are missing a general mechanism to tweak config options by matching urls instead of matching remote section names.
This could be useful for operating on multiple legacy commits, where remote names changed multiple times over the years.
This could also be very useful for in-dvcfile urls (e.g. dvc import-url), where we don't want to use remote:// notation for some reason or we can't use it at all (e.g. in dvc import and chained imports).
# will match all urls (or more precisely fs instances that we create for those urls) that start with `azure://mycontainer`
[ fs_config "azure://mycontainer1" ]
# could set all config options that one might need, same as with `dvc remote`
connection_string = XXX
We've introduced things like
--config/--remote-config/--fs-config
indvc import/get/ls/[-url]
, but we are missing a general mechanism to tweak config options by matching urls instead of matching remote section names.This could be useful for operating on multiple legacy commits, where remote names changed multiple times over the years.
This could also be very useful for in-dvcfile urls (e.g.
dvc import-url
), where we don't want to useremote://
notation for some reason or we can't use it at all (e.g. indvc import
and chained imports).Inspired by git's credential sections https://git-scm.com/docs/gitcredentials#_credential_contexts
, we could do something more general like so:
Related #9886
Kudos @uditrana
The text was updated successfully, but these errors were encountered: