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
osc refuses to checkout a package that is managed by git, even though the sources are present on the source server:
$ osc co foo:bar baz
Install the obs-scm-bridge package to work on packages managed in scm (git)!
$ echo $?
1
This is a bug, because there are valid use cases for checking out sources from an OBS instances even when the package in question is maintained in git. For example, someone might want to simply look at the sources that are stored on the OBS source server. Or they might want to repeatedly run osc buildinfo as this is much more convenient from within a checkout.
One can make the error go away by installing the package (as called for by the error message), but all this does is make the error go away. The functionality is the same.
Versions
Operating system: openSUSE Leap 15.6
Packages: osc-1.5.1-150400.10.3.1.noarch
Expected behavior
The checkout should succeed, allowing the user to peruse the sources as stored on the OBS source server.
Additional context
One obvious way to fix the bug would be to adjust the error handling in osc so the error is displayed only on operations that really do require the obs-scm-bridge package.
Another (perhaps easier) way to fix it would be to add a Requires: osc-scm-bridge to osc.spec.
The text was updated successfully, but these errors were encountered:
we can add an option to checkout classic scm files nevertheless, without checking for the bridge.
However, I would not promote this in the error message, since it would result in a different representation of the checkout and when the user is then trying to commit modifications it would fail. So this would be an expert-only with internal knowledge of implementation feature.
The "commit modifications" argument does not fly in my opinion. If you have a "subdir" in the scm url there will be no .git directory and thus you cannot contribute anyway. It only makes sense in one specific use case.
Describe the bug
osc refuses to checkout a package that is managed by git, even though the sources are present on the source server:
This is a bug, because there are valid use cases for checking out sources from an OBS instances even when the package in question is maintained in git. For example, someone might want to simply look at the sources that are stored on the OBS source server. Or they might want to repeatedly run
osc buildinfo
as this is much more convenient from within a checkout.One can make the error go away by installing the package (as called for by the error message), but all this does is make the error go away. The functionality is the same.
Versions
openSUSE Leap 15.6
osc-1.5.1-150400.10.3.1.noarch
Expected behavior
The checkout should succeed, allowing the user to peruse the sources as stored on the OBS source server.
Additional context
One obvious way to fix the bug would be to adjust the error handling in osc so the error is displayed only on operations that really do require the
obs-scm-bridge
package.Another (perhaps easier) way to fix it would be to add a
Requires: osc-scm-bridge
to osc.spec.The text was updated successfully, but these errors were encountered: