-
Notifications
You must be signed in to change notification settings - Fork 471
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 getting versions for any package. #2935
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2935 +/- ##
==========================================
+ Coverage 47.30% 47.32% +0.01%
==========================================
Files 355 355
Lines 56889 56891 +2
==========================================
+ Hits 26913 26921 +8
+ Misses 26945 26935 -10
- Partials 3031 3035 +4
Continue to review full report at Codecov.
|
@@ -67,7 +70,7 @@ var checkCmd = &cobra.Command{ | |||
if err != nil { | |||
exitErrorf("Error creating s3 session %s\n", err.Error()) | |||
} else { | |||
version, _, err := s3Session.GetLatestUpdateVersion(channel) | |||
version, _, err := s3Session.GetPackageVersion(channel, packageName, 0) |
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 like you could deprecate GetLatestUpdateVersion
with this change.
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.
few small requests, but looks good otherwise.
d632c78
to
90fa8be
Compare
## Summary Add an option to support version checking for arbitrary packages. This would allow us to deploy indexer releases at `algorand-releases/<channel>/indexer-*` ## Test Plan Ran the command and see the correct regex: ``` ~$ updater ver check -c nightly -p indexer Checking for files matching: 'channel/nightly/indexer_nightly_linux-amd64_' in bucket algorand-releases no updates found for channel 'nightly' ```
Summary
Add an option to support version checking for arbitrary packages. This would allow us to deploy indexer releases at
algorand-releases/<channel>/indexer-*
Test Plan
Ran the command and see the correct regex: