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_metadata: remove tough dependency #1390

Merged
merged 1 commit into from Mar 15, 2021
Merged

update_metadata: remove tough dependency #1390

merged 1 commit into from Mar 15, 2021

Conversation

webern
Copy link
Member

@webern webern commented Mar 12, 2021

Issue number:

#1377

Description of changes:

Removes the update_metadata dependency on tough. This removes a lot of
heavyweight dependencies from update_metadata, including tokio, reqwest,
hyper, and tough. update_metadata is used cross-workspace by pubsys, so
removing tough from update_metadata keeps the cross-workspace dependency
duplication to a minimum.

Testing done:

Ran pods, did an upgrade.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

sources/api/migration/migrator/src/error.rs Outdated Show resolved Hide resolved
sources/updater/updog/src/error.rs Show resolved Hide resolved
@webern
Copy link
Member Author

webern commented Mar 15, 2021

webern force-pushed the webern:toughless branch from 8195c76 to c652421

More consistent error variant naming in Migrator.

@webern
Copy link
Member Author

webern commented Mar 15, 2021

webern force-pushed the webern:toughless branch from c652421 to fb81cab

Oops typo

Removes the update_metadata dependency on tough. This removes a lot of
heavyweight dependencies from update_metadata, including tokio, reqwest,
hyper, and tough. update_metadata is used cross-workspace by pubsys, so
removing tough from update_metadata keeps the cross-workspace dependency
duplication to a minimum.
@webern
Copy link
Member Author

webern commented Mar 15, 2021

webern force-pushed the webern:toughless branch from fb81cab to 94607ed

Add backtrace field in Updog error variants to stay consistent with the existing pattern.

@webern webern merged commit 8090612 into bottlerocket-os:develop Mar 15, 2021
@webern webern deleted the toughless branch March 15, 2021 21:43
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.

None yet

3 participants