You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Package.swift` file is intended to follow a somewhat rigid file format, and not just be free form Swift code.
In particular, the design goal was that there be a "leading package specifier":
letpackage = Package(...)
which is Swift code using the PackageDescription APIs, but which can also be mechanically edited. Our intention was to use the Swift AST to parse/type check the code, but then write a new validation pass on the AST to enforce that it followed the conventions which we could mechanically edit.
The hope is that once we had these pieces we could also load the leading package specification from the manifest without needing to execute any code.
We need to implement this latter part of the design, currently we just compile and execute the manifest using the Swift interpreter (which JITs under the covers)
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 5476fbaaa6f239d3f1a53d63fc83392a
Issue Description:
The `Package.swift` file is intended to follow a somewhat rigid file format, and not just be free form Swift code.
In particular, the design goal was that there be a "leading package specifier":
which is Swift code using the PackageDescription APIs, but which can also be mechanically edited. Our intention was to use the Swift AST to parse/type check the code, but then write a new validation pass on the AST to enforce that it followed the conventions which we could mechanically edit.
The hope is that once we had these pieces we could also load the leading package specification from the manifest without needing to execute any code.
We need to implement this latter part of the design, currently we just compile and execute the manifest using the Swift interpreter (which JITs under the covers)
The text was updated successfully, but these errors were encountered: