Navigation Menu

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-7830] describe --type JSON does not output JSON #4801

Closed
ankitspd opened this issue May 31, 2018 · 3 comments
Closed

[SR-7830] describe --type JSON does not output JSON #4801

ankitspd opened this issue May 31, 2018 · 3 comments
Labels

Comments

@ankitspd
Copy link
Member

Previous ID SR-7830
Radar rdar://problem/36273458
Original Reporter @aciidb0mb3r
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: 3b5684feaf0ef90306abcfaf3f3ea7ab

is duplicated by:

  • SR-9362 swift package describe unnecessarily fetches dependencies

Issue Description:

$ swift package describe --type json

prints "Updating" messages to stdout, resulting in unparseable JSON.

e.g.

Updating https://github.com/foo-bar/foo.git
Updating https://github.com/foo-bar/bar.git
Updating https://github.com/foo-bar/baz.git
Updating https://github.com/foo-bar/quix.git
{
"name": "FooKit",
"path": "/Users/ankit/Source/FooKit/FooKit",

[JSON continues]

--

We should move all the other output on stderr and only keep JSON on stdout.

@swift-ci
Copy link
Contributor

Comment by Shai Mishali (JIRA)

https://github.com/apple/swift-package-manager/pull/1603/files

@swift-ci
Copy link
Contributor

Comment by Matt Lewin (JIRA)

#1627 implements this fix as described

@ankitspd
Copy link
Member Author

Resolved by #1691

@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