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
Allow mocking of url downloads with local file (--archive) #67
Conversation
Codecov Report
@@ Coverage Diff @@
## master #67 +/- ##
==========================================
- Coverage 47.8% 47.32% -0.48%
==========================================
Files 12 12
Lines 592 598 +6
==========================================
Hits 283 283
- Misses 262 268 +6
Partials 47 47
Continue to review full report at Codecov.
|
7e1643a
to
bc25679
Compare
@lbb wdyt of this |
e9544ae
to
000f7dc
Compare
Ready for review. |
- rename --source to --manifest in install command. - introduce --archive flag to install command to override the installation from the uri specified in the manifest file. - remove getFileFromArg() method (not needed) This patch allows specifying both plugin yamls and archives to install cmd: krew install --manifest foo.yaml --archive foo.zip It does not download a file, but it still checks integrity (so it can be used to check the manifest without uploading the archive anywhere). The method signatures got very long but I think that's partially because we probably didn't design the methods in install.go well (the code smell here is the repetitive args passed from one method to another all the way down). Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
the uri specified in the manifest file.
This patch allows specifying both plugin yamls and archives to install cmd:
It does not download a file, but it still checks integrity (so it can be used to
check the manifest without uploading the archive anywhere).
The method signatures got very long but I think that's partially because
we probably didn't design the methods in install.go well (the code smell here
is the repetitive args passed from one method to another all the way down).