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

Improve misleading pulumi new summary message #1571

Merged
merged 1 commit into from
Jun 25, 2018
Merged

Conversation

justinvp
Copy link
Member

Mention running cd (if needed) before pulumi update.

Fixes #1508

Mention running `cd` (if needed) before `pulumi update`.
@justinvp justinvp requested review from pgavlin and ellismg June 25, 2018 22:09
Copy link
Member

@lukehoban lukehoban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cd = fmt.Sprintf("\"%s\"", cd)
}

fmt.Printf("Run 'cd %s' then 'pulumi update'.\n", cd)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On purpose that there is a trailing newline here but not in the other branch?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else uses Println whereas Printf with explicit \n is used here. (I really wish go had a built-in Printlnf).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh - yeah - totally missed that.

I just completely avoid Println myself to avoid this confusion 😄.

@justinvp justinvp merged commit 2df35f4 into master Jun 25, 2018
@justinvp justinvp deleted the justin/newsummary branch June 25, 2018 23:26
@ellismg ellismg added the kind/bug Some behavior is incorrect or out of spec label Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants