Skip to content

docs: document Go source zip artifact for fern generate --pack - #6480

Open
devin-ai-integration[bot] wants to merge 1 commit into
devin/1785431301-document-fern-generate-packfrom
devin/1785517652-go-pack-source-zip
Open

docs: document Go source zip artifact for fern generate --pack#6480
devin-ai-integration[bot] wants to merge 1 commit into
devin/1785431301-document-fern-generate-packfrom
devin/1785517652-go-pack-source-zip

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

fern generate --pack now produces an artifact for Go SDKs: a zip of the generated module source. Previously Go was the one language where --pack produced nothing (Go modules have no binary package format), so teams sharing a generated Go SDK internally had no shareable file. This documents the new fern-dist/<output-dir>-source.zip artifact and how a consumer uses it via a replace directive in go.mod.

Implements docs for: feat(cli): --pack builds a source zip artifact for Go SDKs (fern-api/fern#17293)

Stacks on top of #6468, which documents --pack / --pack-mode generally; this PR adds only the Go-specific content. Base it on main once #6468 merges.

Changes in fern/products/cli-api-reference/pages/commands.mdx, inside the ### pack section:

  • Artifact table row for Go now names the file: module source zip (<output-dir>-source.zip).
  • One paragraph plus a go.mod snippet covering: the zip excludes fern-dist/ and .git/, it's built in-process (same artifact in host and docker pack modes, no Go toolchain required), and consumers unzip it and add a replace directive.

Link to Devin session: https://app.devin.ai/sessions/d2a296bf5ee54923be223cf096a1a852

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from devalog as a code owner July 31, 2026 17:07
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

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.

0 participants