Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using rome download --concurrently with --use-xcframeworks leads to io error: openBinaryFile: resource busy (file is locked) #256

Open
osxd opened this issue Sep 27, 2022 · 0 comments

Comments

@osxd
Copy link

osxd commented Sep 27, 2022

Bug Report

using rome download --concurrently option with --use-xcframeworks
leads to io error: openBinaryFile: resource busy (file is locked)

rome: Carthage/Build/RxBlocking.xcframework/ios-arm64_i386_x86_64-simulator/RxBlocking.framework/Modules/RxBlocking.swiftmodule/x86_64-apple-ios-simulator.swiftinterface: openBinaryFile: resource busy (file is locked)

Steps which explain the enhancement or reproduce the bug

pre-requisite: you have Cartfile with multiple dependencies (to benefit from "--concurrently" )

  1. try download cache from S3: rome download --use-xcframeworks --cache-prefix my_prefix --romefile ../Romefile
  2. observe error at some point (sooner or later):
rome: Carthage/Build/RxBlocking.xcframework/ios-arm64_i386_x86_64-simulator/RxBlocking.framework/Modules/RxBlocking.swiftmodule/x86_64-apple-ios-simulator.swiftinterface: openBinaryFile: resource busy (file is locked)

Current behavior

it fails, as described above

Suggested behavior

it doesn't fail (i think it somehow connected with haskell io + possibly reading/writing some files twice??)

Why would the enhancement be useful to most users

as we more using xcframeworks – it might be handy to have fixed

Rome version:

rome --version
0.24.0.65 - Romam uno die non fuisse conditam.

OS and version:

MacOS 12.6 + M1 (arm64)
Darwin PJ2NJLJF24 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant