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

[SR-8947] swift package init generates invalid source code #4888

Closed
swift-ci opened this issue Oct 9, 2018 · 2 comments
Closed

[SR-8947] swift package init generates invalid source code #4888

swift-ci opened this issue Oct 9, 2018 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Oct 9, 2018

Previous ID SR-8947
Radar None
Original Reporter nityanandaz (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Apple Swift version 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 08856eb20dce5a7e7af42a79364583ac

Issue Description:

Using

$ swift package init --type empty

or

$ swift package init --type system-module

to generate a new package generates invalid source code in Package.swift.

Trying to compile right after initializing results in an error:

$ swift build
$ error: manifest parse error(s):
$ /Package.swift:12:1: error: unexpected ',' separator
)
^
@swift-ci
Copy link
Contributor Author

Comment by Nityananda Zbil (JIRA)

I started to fix it, but then the compiler gave a warning that there is no target.

Obviously, that is true for an empty package.

@ankitspd
Copy link
Member

ankitspd commented Jan 2, 2019

This was fixed by a contributor.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants