Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3275

Lack of command 'git' causes swift-build crash.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Package Manager
    • Labels:
      None
    • Environment:

      Swift version 3.0 (swift-3.0-RELEASE)
      Target: x86_64-unknown-linux-gnu

      Description

      I noticed following crash when there is no 'git' command in the system.

      $ swift build
      (...)
      Cloning https://github.com/.............
      git clone --recursive --depth 10 https://github.com/.......... 
      
      fatal error: unexpectedly found nil while unwrapping an Optional value
      Current stack trace:
      0    libswiftCore.so                    0x00007fa1d0787690 swift_reportError + 117
      1    libswiftCore.so                    0x00007fa1d0798b00 _swift_stdlib_reportFatalError + 61
      2    libswiftCore.so                    0x00007fa1d05aa063 <unavailable> + 0
      3    libswiftCore.so                    0x00007fa1d070512d <unavailable> + 0
      4    libswiftCore.so                    0x00007fa1d05aa063 <unavailable> + 0
      5    libswiftCore.so                    0x00007fa1d06c9130 specialized _fatalErrorMessage(StaticString, StaticString, StaticString, UInt, flags : UInt32) -> Never + 96
      6    swift-build                        0x00000000005b3575 <unavailable> + 0
      7    swift-build                        0x00000000005ff4b7 <unavailable> + 0
      8    swift-build                        0x000000000060ab22 <unavailable> + 0
      9    swift-build                        0x000000000060c822 <unavailable> + 0
      10   swift-build                        0x0000000000601cf1 <unavailable> + 0
      11   swift-build                        0x0000000000603c6e <unavailable> + 0
      12   swift-build                        0x000000000060338d <unavailable> + 0
      13   swift-build                        0x0000000000603d3c <unavailable> + 0
      14   libswiftCore.so                    0x00007fa1d064c360 Sequence.flatMap<A where ...> ((A.Iterator.Element) throws -> A1) throws -> [A1.Iterator.Element] + 576
      15   swift-build                        0x00000000005fff8c <unavailable> + 0
      16   swift-build                        0x00000000005ff964 <unavailable> + 0
      17   swift-build                        0x00000000006080b2 <unavailable> + 0
      18   swift-build                        0x000000000062f400 <unavailable> + 0
      19   swift-build                        0x000000000069befa <unavailable> + 0
      20   swift-build                        0x0000000000692327 <unavailable> + 0
      21   swift-build                        0x0000000000414748 <unavailable> + 0
      22   libc.so.6                          0x00007fa1ce812a50 __libc_start_main + 245
      23   swift-build                        0x0000000000414619 <unavailable> + 0
      Illegal instruction
      
      $ git
      -bash: git: command not found
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              scoot Andrzej Butkiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: