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

update dependencies (sane go.mod) #1061

Merged
merged 1 commit into from
Sep 29, 2021
Merged

update dependencies (sane go.mod) #1061

merged 1 commit into from
Sep 29, 2021

Conversation

piksel
Copy link
Member

@piksel piksel commented Aug 31, 2021

this should both simplify the dependencies (and the go.mod), bring us closer to the current docker client and remove dependency on the old runc (which is flagged as vulnerable by dependabot, even though the code is not used in watchtower itself).

@piksel piksel requested a review from simskij as a code owner August 31, 2021 22:02
@codecov
Copy link

codecov bot commented Aug 31, 2021

Codecov Report

Merging #1061 (b7a345b) into main (697397f) will decrease coverage by 0.05%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1061      +/-   ##
==========================================
- Coverage   62.02%   61.96%   -0.06%     
==========================================
  Files          22       22              
  Lines        1435     1438       +3     
==========================================
+ Hits          890      891       +1     
- Misses        462      463       +1     
- Partials       83       84       +1     
Impacted Files Coverage Δ
pkg/container/client.go 27.91% <0.00%> (ø)
pkg/registry/trust.go 46.66% <50.00%> (-0.96%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 697397f...b7a345b. Read the comment docs.

func EncodeAuth(authConfig types.AuthConfig) (string, error) {
buf, err := json.Marshal(authConfig)
if err != nil {
return "", err
Copy link
Member Author

Choose a reason for hiding this comment

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

This basically cannot happen, since the passed struct is always serializable (which also makes it impossible to write a test for it). Still, it wouldn't be right to ignore the error, since something might change that makes it possible (or cosmic radiation etc) 🤷‍♀️

@simskij simskij merged commit 47a640b into main Sep 29, 2021
@simskij simskij deleted the fix/mod-deps branch September 29, 2021 09:34
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.

2 participants