-
Notifications
You must be signed in to change notification settings - Fork 10.5k
utils/update-checkout error from git checkout icu maint/maint-69 #70966
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
Comments
mkdir swift-project
cd swift-project
git clone [email protected]:apple/swift.git swift --branch swift-5.9.2-RELEASE
cd swift
utils/update-checkout --clone-with-ssh Hmm… I just tried cloning |
git diff
diff --git a/utils/update_checkout/update-checkout-config.json b/utils/update_checkout/update-checkout-config.json
index 3cd73079ace..0e284599338 100644
--- a/utils/update_checkout/update-checkout-config.json
+++ b/utils/update_checkout/update-checkout-config.json
@@ -190,7 +190,7 @@
"swift-nio-ssl": "2.15.0",
"swift-experimental-string-processing": "swift/release/5.10",
"curl": "curl-8_4_0",
- "icu": "maint/maint-69",
+ "icu": "release-65-1",
"libxml2": "v2.11.5",
"zlib": "v1.3"
}
utils/update-checkout --clone-with-ssh Hacking |
Is this all it prints—no further details on the exception? Try |
@AnthonyLatsis That worked for me from latest |
https://gist.github.com/vanvoorden/b6e9240e1d236b0202635eecc8a867fd @AnthonyLatsis Here is what I saw. The |
Hm. I guess we’re not getting any output from Git on why the checkout subcommand failed because of the Cloning dependencies from scratch with |
@AnthonyLatsis here is what I see after hacking |
https://github.com/unicode-org/icu/blob/main/docs/devsetup/source/index.md?plain=1#L75-L94 @AnthonyLatsis Here is the I'm also on Apple Silicon BTW… it looks like the CI jobs are running from Intel? |
Thanks for checking!
Yes.
No idea. This was irrelevant to macOS until recently because @compnerd Was making |
@AnthonyLatsis I think that it is better to have the uniform repository checkouts. I think it was less of a concern when Windows was less reliant on update-checkout, but since there was a push to homogenise the CI environment, I think that uniformly checking out the repositories is a reasonable expectation. It is technically possible to build for Windows from macOS, and that would require that the sources are checked out. |
@AnthonyLatsis @compnerd Hmm… if If we do decide to leave |
I’m happy to accept whatever the platform support folks think is best, but we need to be careful not to forget to update project dependencies.
Yes, having tailored checkouts for specific workflows would be nice. This has been on my radar for a while. An average compiler development workflow needs only half, if not less, of what |
ICU is not windows specific, it is needed for Linux, Android, PS4, Windows, and WASI off the top of my head. Potentially for Haiku as well. It is not needed very specifically for Darwin because it is required for Foundation, which you do not build on Darwin and instead use the system provided copy. I think that introducing a |
BTW, lfs shouldn't be required; it will fail the initial sync but should succeed subsequently (in fact, I don't have git-lfs installed on Windows). |
@compnerd Here is what I saw. The second attempt also failed:
|
swift 5.10 same error
|
Workaround:
|
FYI: The need to re-clone rarely arises, so this problem should not bother you on subsequent updates after the initial cloning even without the workaround. |
Uh oh!
There was an error while loading. Please reload this page.
Description
https://github.com/apple/swift/blob/main/docs/HowToGuides/GettingStarted.md#cloning-the-project
Hi! I just tried following the
cloning-the-project
steps on a new (vanilla)swift
checkout (from latestmain
). I'm seeing some errors on console:I tried running
cloning-the-project
again and see similar errors:Anyone seen these errors before or know the steps to work around and test building
swift
locally? I'm on Apple Silicon BTW. Thanks!Reproduction
Expected behavior
utils/update-checkout
succeeds and installs deps with no errors.Environment
uname -a Darwin C97RX2X127.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:55:06 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6020 arm64
Additional information
No response
The text was updated successfully, but these errors were encountered: