Skip to content

Conversation

@iQQBot
Copy link
Contributor

@iQQBot iQQBot commented Jan 19, 2026

Summary

Add opt-in CLI flag --go-library-weak-deps for treating Go library dependencies as weak dependencies.

Motivation

This provides the infrastructure for the weak deps feature (PR #325), allowing it to be enabled via opt-in flag for safer rollout.

Changes

  • Add --go-library-weak-deps flag to build command
  • Add WithGoLibraryWeakDeps build option
  • Add GoLibraryWeakDeps field to buildOptions struct

Usage

leeway build --go-library-weak-deps :mypackage

When enabled, Go library deps will:

  • Copy source code instead of built artifacts
  • Build in parallel (don't block dependent packages)
  • Still run tests for the library
  • Propagate failures to dependent packages

Note

This PR only adds the flag infrastructure. The actual implementation will be in PR #325, which will check this flag before enabling weak dependency behavior.

Add opt-in flag for treating Go library dependencies as weak dependencies.
When enabled, Go library deps will copy source code instead of built
artifacts, allowing parallel builds while still running tests.

This flag provides the infrastructure for the weak deps feature,
which will be implemented in a follow-up PR.

Co-authored-by: Ona <no-reply@ona.com>
@iQQBot iQQBot closed this Jan 19, 2026
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