Skip to content

fix: correct stale tar.gz and --tarball references after zip default#1779

Open
nadav-y wants to merge 2 commits into
microsoft:mainfrom
nadav-y:main
Open

fix: correct stale tar.gz and --tarball references after zip default#1779
nadav-y wants to merge 2 commits into
microsoft:mainfrom
nadav-y:main

Conversation

@nadav-y

@nadav-y nadav-y commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • docs/reference/cli/publish.md: {name}-{version}.tar.gz -> .zip, --tarball -> --zip, tarball root -> archive root, removed tar czf example, fixed ellipsis and em dashes to ASCII
  • docs/guides/registries.md: same fixes in the registries guide
  • docs/reference/registry-http-api.md: corrected publish format note (was incorrectly citing apm pack tar.gz; now cites apm publish zip with backwards-compat note)
  • packages/apm-guide/.apm/skills/apm-usage/package-authoring.md: .tar.gz -> .zip, tarball -> archive, --tarball -> --zip
  • packages/apm-guide/.apm/skills/apm-usage/workflow.md: mention .zip as default alongside legacy .tar.gz
  • src/apm_cli/commands/publish.py: module docstring (em dash + "tarball")
  • src/apm_cli/deps/registry/extractor.py: "tarball sha256 mismatch" -> "archive sha256 mismatch"
  • src/apm_cli/deps/registry/resolver.py: comment em dash + "tar.gz (default)"

Context

PR #1720 switched apm pack --archive and apm publish to produce .zip by default and added --archive-format zip|tar.gz. These doc and source references were missed in that PR and still described the old .tar.gz default or the removed --tarball flag.

Test plan

  • uv run --extra dev ruff check src/ tests/ -- clean
  • uv run --extra dev ruff format --check src/ tests/ -- clean
  • pylint R0801 duplication check -- 10.00/10
  • bash scripts/lint-auth-signals.sh -- clean
  • uv run pytest tests/unit tests/test_console.py -- 5358 passed, 1 pre-existing failure unrelated to this change

apm publish and apm pack --archive now produce .zip by default (landed
in microsoft#1720). Update all remaining docs and source references that still
described the old .tar.gz default or the removed --tarball flag:

- docs/reference/cli/publish.md: {name}-{version}.tar.gz -> .zip,
  --tarball -> --zip, tarball root -> archive root, remove tar czf
  example, fix ellipsis and em dashes to ASCII
- docs/guides/registries.md: same set of fixes in the registries guide
- docs/reference/registry-http-api.md: correct publish format note
- packages/apm-guide/.apm/skills/apm-usage/package-authoring.md:
  .tar.gz -> .zip, tarball -> archive, --tarball -> --zip
- packages/apm-guide/.apm/skills/apm-usage/workflow.md: mention .zip
  as default alongside legacy .tar.gz
- src/apm_cli/commands/publish.py: module docstring em dash + tarball
- src/apm_cli/deps/registry/extractor.py: "tarball sha256 mismatch"
  -> "archive sha256 mismatch"
- src/apm_cli/deps/registry/resolver.py: comment em dash + tar.gz default
Copilot AI review requested due to automatic review settings June 15, 2026 11:22

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 cleans up stale .tar.gz / --tarball references after PR #1720 switched the default producer format to .zip, aligning docs and a few in-code strings/comments with the current packaging behavior.

Changes:

  • Update publish/registry documentation to describe .zip as the default archive and --zip as the override path.
  • Clarify the Registry HTTP API format expectations and backwards-compat acceptance for legacy tar.gz uploads.
  • Rename/adjust a couple of in-code references from “tarball” to “archive” for accuracy.

Reviewed changes

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

Show a summary per file
File Description
src/apm_cli/deps/registry/resolver.py Updates comment to reflect zip default + legacy tar.gz extraction support.
src/apm_cli/deps/registry/extractor.py Renames sha256 mismatch message from “tarball” to “archive”.
src/apm_cli/commands/publish.py Updates module docstring to refer to zip archive publish.
packages/apm-guide/.apm/skills/apm-usage/workflow.md Documents .zip as default bundle format alongside legacy .tar.gz.
packages/apm-guide/.apm/skills/apm-usage/package-authoring.md Updates registry publish packaging guidance to .zip / --zip.
docs/src/content/docs/reference/registry-http-api.md Updates publish-format note and adds backwards-compat acceptance statement.
docs/src/content/docs/reference/cli/publish.md Updates publish reference from tar.gz/--tarball to zip/--zip and ASCII punctuation.
docs/src/content/docs/guides/registries.md Updates registry guide to reflect zip default and --zip.

Comment thread docs/src/content/docs/reference/cli/publish.md Outdated
Comment thread docs/src/content/docs/reference/cli/publish.md Outdated
Comment thread docs/src/content/docs/reference/registry-http-api.md Outdated
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