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

[SR-15491] "/utils/update-checkout --clone --tag swift-5.4-RELEASE" failed #57796

Closed
swift-ci opened this issue Nov 17, 2021 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-15491
Radar None
Original Reporter viton (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Project Infrastructure
Labels Bug
Assignee viton (JIRA)
Priority Medium

md5: c2ce669674c7966dd891f02690d6ce40

Issue Description:

I run the following commands in terminal:

$ cd swift-project

$ git clone https://github.com/apple/swift.git

$ cd swift

$ ./utils/update-checkout --clone --tag swift-5.4-RELEASE

Then the output is as the following:

```

/Users/zhangchong/SpareTime/swift-project/llvm-project

+ git checkout swift-5.4-RELEASE

error: pathspec 'swift-5.4-RELEASE' did not match any file(s) known to git

Error on repo "/Users/zhangchong/SpareTime/swift-project/llvm-project": Traceback (most recent call last):

File "/Users/zhangchong/SpareTime/swift-project/swift/utils/update_checkout/update_checkout/update_checkout.py", line 169, in update_single_repository

raise originalException

Exception: ['git', 'checkout', 'swift-5.4-RELEASE']

======UPDATE FAILURES======

/Users/zhangchong/SpareTime/swift-project/llvm-project failed (ret=1): ['git', 'checkout', 'swift-5.4-RELEASE']

error: pathspec 'swift-5.4-RELEASE' did not match any file(s) known to git

update-checkout failed, fix errors and try again

```

@swift-ci
Copy link
Collaborator Author

Comment by vitonzhang (JIRA)

After reading the `utils/update-checkout` script and the `update_checkout` package, I fix this issue via modifying the `utils/update_checkout/update-checkout-config.json`:

```

$ git diff

diff --git a/utils/update_checkout/update-checkout-config.json b/utils/update_checkout/update-checkout-config.json

index a606d752da2..85372045f09 100644

      • a/utils/update_checkout/update-checkout-config.json

+++ b/utils/update_checkout/update-checkout-config.json

@@ -57,7 +57,7 @@

    "main": {

         "aliases": \["master", "swift/main", "main"\],

         "repos": {
  •            "llvm-project": "swift/main",
    
  •            "llvm-project": "apple/main",
    
               "swift": "main",
    
               "cmark": "main",
    
               "llbuild": "main",
    

$ git add .

$ git commit -m "Modify the name of branch for llvm-project" .

$ ./utils/update-checkout --clone --tag swift-5.4-RELEASE

// omit the output of the above command.

update-checkout succeeded

cmake : skip

cmark : 9c8096a23f44794bde297452d87c455fc4f76d42

icu : skip

indexstore-db : bd2cf9468e5f81a65419c4b62da1663df83ebdb7

llbuild : eb56a00ed9dfd62c2ce4ec86183ff0bc0afda997

llvm-project : 439a44695a0534a26557cc34b4fe650dccb46aed

ninja : e72d1d581c945c158ed68d9bc48911063022a2c6

sourcekit-lsp : 3df647c2f7d598b5dbad78a7c9c2f54fdbaf06dd

swift : 3e4fab9

swift-argument-parser : d2930e8fcf9c33162b9fcc1d522bc975e2d4179b

swift-corelibs-foundation : b8c9b25e0bb50f4118f5bd9e53c14a8fa3fcf240

swift-corelibs-libdispatch : f13ea5dcc055e5d2d7c02e90d8c9907ca9dc72e1

swift-corelibs-xctest : 8ad2cec16133618af8d5da34bced263f44ac1159

swift-driver : 93e8b927225a62b963ebe13ab11e04192fa8a67b

swift-format : fc3fab6bf6541e611830b122711af0bd750dec6f

swift-integration-tests : 169ede0a8f440162042dd20c9912a20d74053296

swift-stress-tester : a4ca36e9c447b4a7cc7626b8b95e71e92236f0f9

swift-syntax : ce9020568227504e792d07839b91c5de18ed291a

swift-tools-support-core : e95add83fc1042a0a0e260d342f9fc5608df9a84

swift-xcode-playground-support : 8f471406a4ffead2e734693ddb58b433e92ae3e1

swiftpm : 7cd58d6cc1945b14db1346792b39af609ce17fe9

yams : 51ef46468fda5a0fa1a201b8843791d0149d3c01

```

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant