Skip to content
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

Fix scmsync revisioned checkout #1635

Merged

Conversation

adrianschroeter
Copy link
Member

No description provided.

@pep8speaks
Copy link

pep8speaks commented Oct 4, 2024

Hello @adrianschroeter! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 54:121: E501 line too long (121 > 120 characters)

Comment last updated at 2024-10-08 07:43:29 UTC

When specifing a revision to a checkout we need to transfer the
information to the bridge to do the right checkout. We also need
to take the former git url in case it has changed meanwhile.
@dmach dmach force-pushed the fix_scmsync_revisioned_checkout branch 2 times, most recently from e25b12f to c670c93 Compare October 7, 2024 08:23
if revision is not None:
# search for the git sha sum based on the OBS DISTURL package source revision
# we need also take into account that the url was different at that point of time
from .obs_api.scmsync_obsinfo import ScmsyncObsinfo

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc.obs_api.scmsync_obsinfo
begins an import cycle.
@@ -0,0 +1,42 @@
import typing

from ..util.models import * # pylint: disable=wildcard-import,unused-wildcard-import

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc.util.models
begins an import cycle.
@dmach dmach force-pushed the fix_scmsync_revisioned_checkout branch from c670c93 to 5172002 Compare October 8, 2024 07:43
def from_api(cls, apiurl: str, project: str, package: str, *, rev: str) -> "ScmsyncObsinfo":
import urllib.error
from .. import oscerr
from ..connection import http_request

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc.connection
begins an import cycle.
import urllib.error
from .. import oscerr
from ..connection import http_request
from ..core import makeurl

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
osc.core
begins an import cycle.
@dmach dmach merged commit 1196e17 into openSUSE:master Oct 14, 2024
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants