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

"Could not find Package.swift" for ubuntu target #439

Open
Stiivi opened this issue Jul 20, 2022 · 2 comments
Open

"Could not find Package.swift" for ubuntu target #439

Stiivi opened this issue Jul 20, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Stiivi
Copy link

Stiivi commented Jul 20, 2022

Describe the bug

Getting the following error:

lsb_release -r
/opt/hostedtoolcache/swift-Ubuntu/5.6.1/x64/usr/bin/swiftc -print-target-info
/opt/hostedtoolcache/swift-Ubuntu/5.6.1/x64/usr/bin/swift-frontend -frontend -print-target-info
/opt/hostedtoolcache/swift-Ubuntu/5.6.1/x64/usr/bin/swift-frontend -frontend -print-target-info
/opt/hostedtoolcache/swift-Ubuntu/5.6.1/x64/usr/bin/swift-frontend -frontend -emit-supported-features /tmp/TemporaryDirectory.lfMPTC/dummyInput-1.swift
/opt/hostedtoolcache/swift-Ubuntu/5.6.1/x64/usr/bin/swiftc -print-target-info
error: Could not find Package.swift in this directory or any of its parent directories.
Error: Process completed with exit code 1.

The offending repository is this and it does contain Package.swift.

Workflow configuration (please complete the following information):

  • Platform (runs-on): [ubuntu-latest, macos-latest]
  • Swift version (swift-version): ["5.6.1"]

The whole configuration file: swift.yml

EDIT: The action fails for both ubuntu-latest and macos-latest targets. The repository does contain Package.swift as it is being developed as a package. Both Xcode and command-line tools recognise it as a proper Swift package repository.

@fwal
Copy link
Collaborator

fwal commented Oct 11, 2022

Hi @Stiivi! 👋🏻 Do you still experience this issue?

@rocxteady
Copy link

I run into the same thing. I was just a beginner about this actions stuff. I forgot to checkout the project first. Add step to checkout the project first. Maybe it should be mentioned on the docs, @fwal.

    steps:
    - uses: actions/checkout@v4
    - uses: swift-actions/setup-swift@v1

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

3 participants