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

Root manifest not found #133

Closed
SplittyDev opened this issue Oct 2, 2020 · 8 comments
Closed

Root manifest not found #133

SplittyDev opened this issue Oct 2, 2020 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@SplittyDev
Copy link

SplittyDev commented Oct 2, 2020

Describe the bug
After setting up the workflow, it fails with the following message:

> Run swift build -v
/usr/bin/xcrun --sdk macosx --show-sdk-path
/usr/bin/xcrun --sdk macosx --show-sdk-platform-path
/usr/bin/xcrun --sdk macosx --find xctest
/Users/runner/hostedtoolcache/swift-macOS/5.3/x64/usr/bin/swiftc -print-target-info
error: root manifest not found
Error: Process completed with exit code 1.

To be honest I'm not completely sure that this is a bug in the workflow.
Is running the workflow like this supported for Swift Packages?

Workflow configuration (please complete the following information):

  • Platform (runs-on): macos-latest
  • Swift version (swift-version): 5.3

My workflow file:

name: Swift

on: [push, pull_request]

jobs:
  build:
    runs-on: macos-latest
    
    steps:
    - uses: fwal/setup-swift@v1
      with:
        swift-version: "5.3"
    - name: Get swift version
      run: swift --version
    - name: Build
      run: swift build -v
    - name: Run tests
      run: swift test -v

The PR adding the workflow:
FiveSheepCo/SchafKit#3

@SplittyDev SplittyDev added the bug Something isn't working label Oct 2, 2020
@fwal
Copy link
Collaborator

fwal commented Oct 6, 2020

Hi @SplittyDev! Thanks for your report!
It looks like its due to that you source code isn't available for swift to build. By default, the source in your repo isn't available in the workflow.
Try adding - uses: actions/checkout@v2 to checkout your source in your workflow before the build step.

@SplittyDev
Copy link
Author

Hi @fwal, thanks for the quick reply!
The repo is getting checked out now, I'm getting another error though:

Target: x86_64-apple-darwin19.6.0
connect EHOSTUNREACH 169.47.73.10:443
Waiting 17 seconds before trying again
connect EHOSTUNREACH 169.47.73.10:443
Waiting 10 seconds before trying again
Error: Unexpected error, unable to continue. Please report at https://github.com/fwal/setup-swift/issues

No idea what causes this..

@fwal
Copy link
Collaborator

fwal commented Oct 6, 2020

Haven't seen that one before. Does it display a stacktrace? Have you tried running the workflow again?

@SplittyDev
Copy link
Author

SplittyDev commented Oct 6, 2020

Haven't seen that one before. Does it display a stacktrace? Have you tried running the workflow again?

I tried running it again multiple times, just to be sure that it's not a temporary error.
Just ran it again, this is the output:

> Run fwal/setup-swift@v1
/usr/bin/xcrun --toolchain swift 5.3 --run swift --version
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.6.0
connect EHOSTUNREACH 169.47.73.10:443
Waiting 20 seconds before trying again
connect EHOSTUNREACH 169.47.73.10:443
Waiting 18 seconds before trying again
Error: Unexpected error, unable to continue. Please report at https://github.com/fwal/setup-swift/issues
connect EHOSTUNREACH 169.47.73.10:443
Stacktrace:
Error: connect EHOSTUNREACH 169.47.73.10:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14)

I tried finding out which host it's trying to connect to. Couldn't find the IP in the repo at all.

Update:
The domain is actually swift.org 😂
Just checked this in the browser, https://swift.org is down.

@fwal
Copy link
Collaborator

fwal commented Oct 6, 2020

Oh... Well then that settles that 😅

@SplittyDev
Copy link
Author

I'll keep the issue open till swift.org is back up if that's alright with you

@fwal
Copy link
Collaborator

fwal commented Oct 6, 2020

@SplittyDev swift.org seems to be back online 👍🏻

@fwal
Copy link
Collaborator

fwal commented Oct 6, 2020

Created #135 for that specific case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants