8000 feat(sdk): return final package ref after publish by AustinAbro321 · Pull Request #3911 · zarf-dev/zarf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(sdk): return final package ref after publish #3911

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

Merged
merged 15 commits into from
Jun 12, 2025
Merged

Conversation

AustinAbro321
Copy link
Contributor
@AustinAbro321 AustinAbro321 commented Jun 12, 2025

Description

Returns the final path after publish. This makes for a more intuitive experience on the SDK side, where you can publish your package, then use the new reference directly.

It bodes well for this PR that the tests consistently get simplified. Most of the time, in test, after we call this function we put together the ref to do more with it anyway.

Checklist before merging

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Copy link
netlify bot commented Jun 12, 2025

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit d60ecfa
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/684aebd09d3b760007b1fd37

Copy link
codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 43.58974% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/packager/publish.go 48.14% 12 Missing and 2 partials ⚠️
src/cmd/package.go 0.00% 4 Missing ⚠️
src/pkg/zoci/utils.go 50.00% 2 Missing ⚠️
src/pkg/zoci/copier.go 0.00% 1 Missing ⚠️
src/pkg/zoci/pull.go 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/pkg/packager/create.go 49.20% <100.00%> (ø)
src/pkg/zoci/copier.go 0.00% <0.00%> (ø)
src/pkg/zoci/pull.go 59.23% <0.00%> (+0.37%) ⬆️
src/pkg/zoci/utils.go 45.00% <50.00%> (ø)
src/cmd/package.go 38.69% <0.00%> (-0.07%) ⬇️
src/pkg/packager/publish.go 62.50% <48.14%> (-1.91%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 changed the title feat(SDK): return final package ref after publish feat(sdk): return final package ref after publish Jun 12, 2025
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 marked this pull request as ready for review June 12, 2025 14:11
@AustinAbro321 AustinAbro321 requested review from a team as code owners June 12, 2025 14:11
mkcp
mkcp previously approved these changes Jun 8000 12, 2025
Copy link
Contributor
@mkcp mkcp left a comment

Choose a reason for hiding this comment

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

LGTM

@AustinAbro321 AustinAbro321 enabled auto-merge June 12, 2025 14:32
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Jun 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 12, 2025
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Jun 12, 2025
Merged via the queue into main with commit bc926ee Jun 12, 2025
26 checks passed
@AustinAbro321 AustinAbro321 deleted the publish-returns branch June 12, 2025 15:59
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
0