Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-30680

mac os executables are not detected properly and fail uploading

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.34.1
    • Fix Version/s: None
    • Component/s: Maven
    • Labels:

      Description

      We are trying to upload the spectral linter binaries in our Nexus repo (version OSS 3.34.1-01). The binaries can be found here: https://github.com/stoplightio/spectral/releases/tag/v6.1.0

      Uploading the linux and windows binaries works, but for mac os there is an error with the detected content-type:

       

      > Detected content type [text/plain], but expected [application/x-executable, application/x-dosexec, application/x-msdownload]: spectral/spectral/6.0.1/spectral-6.0.1-osx.exe

      Using `file` gives this info for the binaries, in case it's relevant:

      macos file: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|HAS_TLV_DESCRIPTORS>

      linux file: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=574f253597e628e2e2fb991a1a5d22bd55e34864, for GNU/Linux 2.6.32, stripped

      windows file: PE32+ executable (console) x86-64, for MS Windows

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jorg.heymans@gmail.com Jorg Heymans
            Last Updated By:
            Jorg Heymans Jorg Heymans
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title