From 2776a5b3dd4c90da77680d3f23d9160626c555a8 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 17:07:32 +0000 Subject: [PATCH] docs: document Go source zip artifact for fern generate --pack Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- fern/products/cli-api-reference/pages/commands.mdx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fern/products/cli-api-reference/pages/commands.mdx b/fern/products/cli-api-reference/pages/commands.mdx index c05595673..b27ca12a2 100644 --- a/fern/products/cli-api-reference/pages/commands.mdx +++ b/fern/products/cli-api-reference/pages/commands.mdx @@ -315,7 +315,15 @@ hideOnThisPage: true | Ruby | gem (`.gem`) | | PHP | Composer archive (`.zip`) | | Rust | crate (`.crate`) | - | Go | module source archive (`.zip`), since `go get` always fetches source | + | Go | module source zip (`-source.zip`) | + + Go modules have no binary package format, so the Go artifact is a zip of the generated module source, excluding `fern-dist/` and `.git/`. Fern builds it in-process: it produces the same artifact in either pack mode and requires no Go toolchain. Consumers unzip it and point their `go.mod` at the unzipped directory: + + ```go title="go.mod" + require github.com/plantstore/plantstore-go v0.0.0 + + replace github.com/plantstore/plantstore-go => ../plantstore-go + ``` Swift SDKs are distributed as Swift Package Manager source packages, so packaging logs a warning instead of producing an artifact: share the output directory or reference it as a local package dependency. If packaging fails for one or more generators, the CLI reports them together as `Packaging failed for: ` and removes any empty `fern-dist/` directory it created.