-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted
Milestone
Description
Currently, it's possible to replace files using -overlay (#39958).
However, it only have Replace options:
type OverlayJSON struct {
Replace map[string]string
}
I would like to suggest a new field, may named as Additions:
type OverlayJSON struct {
Additions map[string]string
Replace map[string]string
}
That is useful when using code-generation/meta-programming. In those cases, would be possible to create new go files, or even creating files such as assembly code (.s) or creating syso files (.syso), without need to write it into the package directory. Currently, those files must be written into the package itself, but the -overlay could be used instead.
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted