Skip to content

[Parity] fatal: '$GIT_DIR' too big #9419

@kcieplak

Description

@kcieplak

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

https://github.com/apple/swift-homomorphic-encryption.git

Windows

The following package does not build using the 'swifbuild' backend but does with 'native'

swift build `--buildsystem=swiftbuild` fails to build package
debug: git.exe -C S:\swift-homomorphic-encryption\.build-swiftbuild\checkouts\swift-protobuf submodule update --init --recursive
error: 'swift-protobuf': Couldn’t update repository submodules:
    Submodule 'Sources/protobuf/abseil' (https://github.com/abseil/abseil-cpp) registered for path 'Sources/protobuf/abseil'
    Submodule 'Sources/protobuf/protobuf' (https://github.com/protocolbuffers/protobuf) registered for path 'Sources/protobuf/protobuf'
    Cloning into 'C:/Users/jenkins/workspace/swift_oss/swift-package-index-metrics/spi-workdir/CAA266FC-C3A0-4E1A-9108-8184321A027D/swift-homomorphic-encryption/.build-swiftbuild/checkouts/swift-protobuf/Sources/protobuf/abseil'...
    fatal: '$GIT_DIR' too big
    fatal: remote helper 'https' aborted session
    fatal: clone of 'https://github.com/abseil/abseil-cpp' into submodule path 'C:/Users/jenkins/workspace/swift_oss/swift-package-index-metrics/spi-workdir/CAA266FC-C3A0-4E1A-9108-8184321A027D/swift-homomorphic-encryption/.build-swiftbuild/checkouts/swift-protobuf/Sources/protobuf/abseil' failed
    Failed to clone 'Sources/protobuf/abseil'. Retry scheduled
    Cloning into 'C:/Users/jenkins/workspace/swift_oss/swift-package-index-metrics/spi-workdir/CAA266FC-C3A0-4E1A-9108-8184321A027D/swift-homomorphic-encryption/.build-swiftbuild/checkouts/swift-protobuf/Sources/protobuf/protobuf'...
    fatal: '$GIT_DIR' too big
    fatal: remote helper 'https' aborted session
    fatal: clone of 'https://github.com/protocolbuffers/protobuf' into submodule path 'C:/Users/jenkins/workspace/swift_oss/swift-package-index-metrics/spi-workdir/CAA266FC-C3A0-4E1A-9108-8184321A027D/swift-homomorphic-encryption/.build-swiftbuild/checkouts/swift-protobuf/Sources/protobuf/protobuf' failed
    Failed to clone 'Sources/protobuf/protobuf'. Retry scheduled
    Cloning into 'C:/Users/jenkins/workspace/swift_oss/swift-package-index-metrics/spi-workdir/CAA266FC-C3A0-4E1A-9108-8184321A027D/swift-homomorphic-encryption/.build-swiftbuild/checkouts/swift-protobuf/Sources/protobuf/abseil'...
    fatal: '$GIT_DIR' too big
    fatal: remote helper 'https' aborted session
    fatal: clone of 'https://github.com/abseil/abseil-cpp' into submodule path 'C:/Users/jenkins/workspace/swift_oss/swift-package-index-metrics/spi-workdir/CAA266FC-C3A0-4E1A-9108-8184321A027D/swift-homomorphic-encryption/.build-swiftbuild/checkouts/swift-protobuf/Sources/protobuf/abseil' failed
    Failed to clone 'Sources/protobuf/abseil' a second time, aborting

Expected behaviour

Builds

Actual behavior

Fails to build

Steps to reproduce

git clone https://github.com/apple/swift-homomorphic-encryption.git
swift build --build-system=swiftbuild

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions