-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cargo - Skip existing packages when publishing (#280)
* WIP - Working implementation of checking package existence through cargo's sparse API * Refactor `prepare` to catch potential exceptions * Fix source * Wire allow_overwrite in public `cargo_publish` function * If package / version are not available, pull from manifest * Move methods for readability * Add Changelog * krakenw r fmt lint * Enable test * Update kraken-build/src/kraken/std/cargo/tasks/cargo_publish_task.py Co-authored-by: Niklas Rosenstein <[email protected]> * CR - nits * Assert that publish task is skipped * tmp: add logs to try things out in CI * Fix usage of get_or that returned a 'none' * fmt * Mock the registry to test skipping * lint * Apply suggestions from code review --------- Co-authored-by: Jean Caillé <[email protected]> Co-authored-by: Niklas Rosenstein <[email protected]>
- Loading branch information
1 parent
381e538
commit 8574fe0
Showing
6 changed files
with
171 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[entries]] | ||
id = "48a06299-f287-49b8-8c91-1f74cfa56f2f" | ||
type = "feature" | ||
description = "Cargo Publishing : Skip publishing packages that already exists in the registry" | ||
author = "@jcaille" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters