Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20691

Artifactory doesn't rewrite location for the package "Swiftlint" in Cocoapod specfile

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Duplicate
    • Affects Version/s: 6.12.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      For all other packages, it's able to resolve the dependencies from Artifactory however for SwiftLint it's directly fetching from the Github.

      On further analysis, the issue seems to be caused due to the source declaration in the podsec file for the package.

      In the podspec file, the source is expected to be declared as a git source. 

      s.source = { :git => "https://github.com/<repo-path>", :tag => s.version } 

      for example for the package PNChart in the list the source is declared as: s.source = { :git => "https://github.com/kevinzhow/PNChart.git", :tag => s.version }

      However, in the source declaration for SwiftLint its mentioned as http instead of git. Hence Artifactory will not be treating it as a valid git source to be fetched from its repository.

      *s.source =**

      { http: "#\{s.homepage}

      /releases/download/#{s.version}/portable_swiftlint.zip" }*

      For the custmer, they are running the "pod install" and they have a pod file.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              swarnenduk Swarnendu Kayal [X] (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: