Skip to content

Implement offline build mode #320

@heartwilltell

Description

@heartwilltell

Phase 6: Polish — RFC #218

When all dependencies are cached (or vendored), builds should work without network access. Implement detection of missing cached modules with clear error messages suggesting run mod download.

Acceptance Criteria

  • If all modules are cached, no network requests are made during build
  • If a module is missing from cache, error: module 'github.com/user/repo@v1.2.3' not in cache; run 'run mod download'
  • Support RUNFLAGS=-vendor to force vendor-only resolution
  • Document offline workflow in docs

Files

  • Modified: src/modcache.zig, src/driver.zig

Dependencies

Part of the Package Manager RFC.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpackage-managerPackage manager (run.toml, dependencies, resolution)toolingDeveloper tooling and CLI

Type

No fields configured for Task.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions