Skip to content

Update upload request headers - #90

Merged
thelovekesh merged 3 commits into
mainfrom
update/upload-request-headers
Jul 19, 2025
Merged

Update upload request headers#90
thelovekesh merged 3 commits into
mainfrom
update/upload-request-headers

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator
  • Add content length header in tarball upload requests

@thelovekesh
thelovekesh requested a review from Copilot July 19, 2025 13:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds content length headers to tarball upload requests as specified in the title. The changes also include replacing Docker dependencies with containerd equivalents and implementing custom signal handling for better termination behavior.

  • Add ContentLength field to upload options and pass it as a custom header
  • Replace github.com/docker/docker dependency with github.com/containerd/errdefs
  • Implement custom signal handling with proper exit codes for terminated processes

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
go.mod Replace docker dependency with containerd/errdefs
cmd/wpm/wpm.go Implement custom signal handling and replace docker errdefs usage
cli/registry/client/client.go Add ContentLength field and x-wpm-content-length header
cli/command/utils.go Replace docker errdefs with custom cancelled error type
cli/command/publish/publish.go Pass content length to upload options

Comment thread cli/registry/client/client.go
Comment thread cmd/wpm/wpm.go
Comment thread cmd/wpm/wpm.go
@github-actions

Copy link
Copy Markdown

📦 wpm cli builds 📦

@thelovekesh
thelovekesh merged commit a015ae1 into main Jul 19, 2025
12 checks passed
@thelovekesh
thelovekesh deleted the update/upload-request-headers branch July 19, 2025 13:10
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