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
{{ message }}
Repository navigation
dbc --version conflicts with dbc install --version #30
I think you just can't have two --version flags and still use automatic parsing. Since I don't think we want to remove the top level dbc --version flag, we could rename the dbc install --version flag to something like -c/--constraint.
Even better, I think we could let the user specify the version constraint in the install command directly and entirely remove the flag. Popular package management tools like npm and cargo do this (e.g., npm add "vite<8").
Should we update the argument to parse the driver and find the constraint (i.e. dbc install "flightsql>1.2") or keep it as a separate argument like -c/--constraint?
Activity
amoeba commentedon Sep 13, 2025
I think you just can't have two
--versionflags and still use automatic parsing. Since I don't think we want to remove the top leveldbc --versionflag, we could rename thedbc install --versionflag to something like-c/--constraint.Even better, I think we could let the user specify the version constraint in the install command directly and entirely remove the flag. Popular package management tools like npm and cargo do this (e.g.,
npm add "vite<8").zeroshade commentedon Sep 17, 2025
Should we update the argument to parse the driver and find the constraint (i.e.
dbc install "flightsql>1.2") or keep it as a separate argument like-c/--constraint?amoeba commentedon Sep 17, 2025
The fastest thing is to just rename the flag but I really like the simplicity of parsing the constraint from the name so I'd prefer that route.
feat: install using version constraints (#47)
feat: install using version constraints (#47)