Cork icon indicating copy to clipboard operation
Cork copied to clipboard

`Package.swift` file is needed for `swift build` and `swift test`

Open cclauss opened this issue 1 year ago • 2 comments

Suggestion type

The way Cork works

What is your idea about?

  • #378 runs swift build and swift test but they currently fail looking for a Package.swift file.

This project has numerous Package.swift files but none at the root of the project.

What is the best way to run swift build and swift test? Should we cd into each directory and run these commands or is there a way to create a project-wide Package.swift that allows the building and testing of all files?

Why should this be added?

Automated testing helps us find bugs in new code submissions before manual code review.

Keeping it real

  • [X] Adding suggestion idea is realistic

cclauss avatar Aug 19 '24 11:08 cclauss

This project has numerous Package.swift files but none at the root of the project.

Most of these regard Homebrew packages. The actual Package.swift is this one: https://github.com/buresdv/Cork/blob/main.swiftlint/Tuist/Package.swift

Keep in mind though that this Package.swift is managed by Tuist, so I'm not sure to what extent it is a "vanilla" Package.swift.

I know very little about either packages or the Swift CLI, so I'd keep the specifics to you

buresdv avatar Aug 19 '24 12:08 buresdv

Hey, I don't want to rush you :) Have you had a chance to look at this more?

buresdv avatar Sep 07 '24 18:09 buresdv

Closed due to inactivity

buresdv avatar Oct 05 '24 12:10 buresdv