Skip to content

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

@Stiivi

Description

@Stiivi

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions