Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Aug 15, 2023

No description provided.

Patrick Zheng added 2 commits August 15, 2023 16:44
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@ghost ghost changed the title fix: fixed notation policy command print outs chore: quick fix on notation policy command print out Aug 15, 2023
@priteshbandi
Copy link
Contributor

Can you please share before and after fix cli output sample ?

@ghost
Copy link
Author

ghost commented Aug 16, 2023

Can you please share before and after fix cli output sample ?

@priteshbandi the change is adding a newline character. For example, if the import trustpolicy is invalid, then the output message is:
Warning: existing trust policy configuration file will be overwrittenError: failed to validate trust policy:...
What we want is:

Warning: existing trust policy configuration file will be overwritten
Error: failed to validate trust policy:...

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@ghost ghost requested a review from shizhMSFT August 16, 2023 02:51
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2023

Codecov Report

Merging #764 (ca62d93) into main (df2aa57) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #764   +/-   ##
=======================================
  Coverage   63.98%   63.98%           
=======================================
  Files          40       40           
  Lines        2252     2252           
=======================================
  Hits         1441     1441           
  Misses        689      689           
  Partials      122      122           
Files Changed Coverage Δ
cmd/notation/policy/import.go 77.35% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

shizhMSFT
shizhMSFT previously approved these changes Aug 16, 2023
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

priteshbandi
priteshbandi previously approved these changes Aug 16, 2023
Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi
Copy link
Contributor

@Two-Hearts looks like 5e1c87ef2829276059e9b131193cd03ff6c70119 commit is not signed

JeyJeyGao
JeyJeyGao previously approved these changes Aug 17, 2023
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost ghost dismissed stale reviews from JeyJeyGao, priteshbandi, and shizhMSFT via 9324c39 August 17, 2023 01:57
@ghost
Copy link
Author

ghost commented Aug 17, 2023

@Two-Hearts looks like 5e1c87ef2829276059e9b131193cd03ff6c70119 commit is not signed

oops, my bad. Signed the commits. @priteshbandi

@ghost ghost requested review from JeyJeyGao, priteshbandi and shizhMSFT August 17, 2023 02:04
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM

@priteshbandi priteshbandi merged commit 1dc6505 into notaryproject:main Aug 17, 2023
@ghost ghost deleted the errMsg branch August 18, 2023 02:58
@shizhMSFT shizhMSFT mentioned this pull request Nov 6, 2023
6 tasks
@ghost ghost mentioned this pull request Jan 25, 2024
6 tasks
7h3-3mp7y-m4n pushed a commit to 7h3-3mp7y-m4n/notation that referenced this pull request Mar 29, 2025
)

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
FeynmanZhou pushed a commit to FeynmanZhou/notation that referenced this pull request May 15, 2025
)

Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants