Skip to content

Commit dd80c83

Browse files
committed
Add required imports
Signed-off-by: Varsha U N <varshaun58@gmail.com>
1 parent 59fc6fa commit dd80c83

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

scanpipe/pipelines/deploy_to_develop.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
2121
# Visit https://github.com/aboutcode-org/scancode.io for support and download.
2222

23+
<<<<<<< HEAD
24+
=======
25+
import logging
26+
from pathlib import Path
27+
>>>>>>> c845a20f (Add required imports)
2328
from aboutcode.pipeline import optional_step
2429
from scanpipe import pipes
2530
from scanpipe.pipelines import Pipeline

scanpipe/pipelines/resolve_dependencies.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@
2020
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
2121
# Visit https://github.com/aboutcode-org/scancode.io for support and download.
2222

23+
<<<<<<< HEAD
2324
from aboutcode.pipeline import optional_step
25+
=======
26+
import logging
27+
from pathlib import Path
28+
from aboutcode.pipeline import optional_step
29+
from aboutcode.pipeline import group
30+
>>>>>>> c845a20f (Add required imports)
2431
from scanpipe.pipelines.scan_codebase import ScanCodebase
2532
from scanpipe.pipes import resolve
2633
from scanpipe.pipes import scancode

scanpipe/pipes/fetch.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ def fetch_git_repo(url, to=None):
363363
)
364364

365365

366-
<<<<<<< HEAD
367366
def store_package_archive(project, url=None, file_path=None):
368367
"""
369368
Store a package in PackageArchive and link it to DownloadedPackage.
@@ -436,17 +435,6 @@ def store_package_archive(project, url=None, file_path=None):
436435
except Exception as e:
437436
logger.error(f"Error creating DownloadedPackage: {e}")
438437
return None
439-
=======
440-
def fetch_package_url(url):
441-
# Ensure the provided Package URL is valid, or raise a ValueError.
442-
PackageURL.from_string(url)
443-
444-
# Resolve a Download URL using purl2url.
445-
if download_url := purl2url.get_download_url(url):
446-
return fetch_http(download_url)
447-
448-
raise ValueError(f"Could not resolve a download URL for {url}.")
449-
>>>>>>> 5d3601a5 (Add support for using Package URL (purl) as project input. (#1686))
450438

451439

452440
SCHEME_TO_FETCHER_MAPPING = {

0 commit comments

Comments
 (0)