Skip to content

Split LinkGeneratedSources config into LinkGeneratedSourcesOnBuild and GeneratedSourcesLinkType (#3513)#3516

Open
Dimagog wants to merge 1 commit intothought-machine:masterfrom
Dimagog:split-link-generated-sources-config
Open

Split LinkGeneratedSources config into LinkGeneratedSourcesOnBuild and GeneratedSourcesLinkType (#3513)#3516
Dimagog wants to merge 1 commit intothought-machine:masterfrom
Dimagog:split-link-generated-sources-config

Conversation

@Dimagog
Copy link
Copy Markdown

@Dimagog Dimagog commented Apr 2, 2026

The existing LinkGeneratedSources string field conflates two concerns: whether to link during builds, and what link type to use. This makes it impossible to use hard links only during plz generate without also auto-linking during builds.

Add two new config fields:

  • LinkGeneratedSourcesOnBuild (bool): controls auto-linking during builds
  • GeneratedSourcesLinkType ("soft"/"hard"): controls link type

The old field is deprecated. When set, it is normalised into the new fields at config load time with a warning. Setting both old and new fields is an error.

Tests:

  • New Unit Tests (new fields, deprecated field normalisation, conflict errors)
  • Existing plz_generate e2e tests pass
  • Full test suite passes (1079 passed, 2 known pre-existing cross-compile failures)

…` and `GeneratedSourcesLinkType` (thought-machine#3513)

The existing `LinkGeneratedSources` string field conflates two concerns:
whether to link during builds, and what link type to use. This makes it
impossible to use hard links only during `plz generate` without also
auto-linking during builds.

Add two new config fields:
- `LinkGeneratedSourcesOnBuild` (bool): controls auto-linking during builds
- `GeneratedSourcesLinkType` ("soft"/"hard"): controls link type

The old field is deprecated. When set, it is normalised into the new
fields at config load time with a warning. Setting both old and new
fields is an error.
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.

1 participant