Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 8, 2023

This PR is based on the new spec: #809

It supports following notation plugin installations:

  1. Install from .tar.gz/.zip file in file system
  2. Install from HTTPS URL, SHA256 checksum is required
  3. Install a plugin executable file in file system

Test: Corresponding E2E test cases are added in this PR as well.

Note: This PR depends on the notation-go PR: notaryproject/notation-go#364

The notation-go PR: notaryproject/notation-go#364 has been Merged.

Patrick Zheng added 12 commits October 19, 2023 16:50
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
fix
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 8, 2023

Codecov Report

Attention: Patch coverage is 59.56113% with 129 lines in your changes missing coverage. Please review.

Project coverage is 63.59%. Comparing base (df8596d) to head (45788ae).
Report is 114 commits behind head on main.

Files with missing lines Patch % Lines
cmd/notation/plugin/install.go 58.37% 78 Missing and 14 partials ⚠️
internal/osutil/file.go 47.91% 18 Missing and 7 partials ⚠️
cmd/notation/internal/plugin/plugin.go 57.14% 8 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #827      +/-   ##
==========================================
- Coverage   64.39%   63.59%   -0.80%     
==========================================
  Files          42       45       +3     
  Lines        2390     2692     +302     
==========================================
+ Hits         1539     1712     +173     
- Misses        720      824     +104     
- Partials      131      156      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghost ghost requested a review from shizhMSFT November 16, 2023 04:04
@ghost ghost requested a review from JeyJeyGao November 20, 2023 07:03
Patrick Zheng added 3 commits December 20, 2023 10:30
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 closed this Dec 20, 2023
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@ghost ghost reopened this Dec 20, 2023
@ghost ghost requested a review from shizhMSFT December 20, 2023 08:37
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Patrick Zheng added 3 commits December 21, 2023 08: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>
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
@ghost ghost requested a review from shizhMSFT December 21, 2023 06:42
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

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.

We should track all the open comments in an issue and address them before 1.1 release

@ghost ghost mentioned this pull request Dec 21, 2023
@ghost
Copy link
Author

ghost commented Dec 21, 2023

@priteshbandi As discussed, issue created: #853

@ghost ghost merged commit 0f85752 into notaryproject:main Dec 21, 2023
@ghost ghost deleted the plugin-install branch December 21, 2023 07:57
@ghost ghost mentioned this pull request Jan 25, 2024
6 tasks
rgnote pushed a commit to rgnote/notation that referenced this pull request Mar 8, 2024
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
rgnote pushed a commit to rgnote/notation that referenced this pull request Mar 8, 2024
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
Signed-off-by: rgnote <5878554+rgnote@users.noreply.github.com>
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>
This pull request was closed.
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.

7 participants