Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0b26861
build: prototype load-time source patches
cpunion Mar 28, 2026
ce3401e
test: lock iter source patch routing
cpunion Mar 28, 2026
02ec9ee
build: support skip directives in source patches
cpunion Mar 28, 2026
83c51d8
build: extend source patch directives
cpunion Mar 28, 2026
21dad23
build: default source patches to active
cpunion Mar 28, 2026
239b023
build: migrate unique to source patch
cpunion Mar 28, 2026
3c10b84
build: migrate reflectlite to source patch
cpunion Mar 28, 2026
532e073
build: preserve source patch positions
cpunion Mar 28, 2026
e09fe00
build: migrate runtime internals to source patches
cpunion Mar 28, 2026
1f663fa
build: narrow source patch package coverage
cpunion Mar 28, 2026
65522dd
build: tighten source patch helpers
cpunion Mar 28, 2026
ab1e850
build: narrow source patch package coverage
cpunion Mar 28, 2026
3cfa0ae
build: skip source patches for missing stdlib packages
cpunion Mar 28, 2026
5c187de
build: resolve source patch goroot from go env
cpunion Mar 28, 2026
d48e159
build: keep sync atomic on alt patches
cpunion Mar 28, 2026
2242f98
build: preserve source patch diagnostics
cpunion Mar 28, 2026
0de323e
build: honor build tags in source patches
cpunion Mar 28, 2026
730a986
runtime: restore maps field comments
cpunion Mar 28, 2026
beda8b0
build: drop source patch nopatch directive
cpunion Mar 28, 2026
46822e8
runtime: keep unique changes off source patch proto
cpunion Mar 28, 2026
b4e2d60
runtime: drop sync atomic skip from source patch proto
cpunion Mar 28, 2026
f81b151
build: simplify source patch diagnostics
cpunion Mar 29, 2026
ee679ac
build: add case-based source patch fixtures
cpunion Mar 29, 2026
bd685f8
test: flatten source patch fixture cases
cpunion Mar 29, 2026
7424944
test: cover generic source patch declarations
cpunion Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,23 @@ func Do(args []string, conf *Config) ([]Package, error) {
if patterns == nil {
patterns = []string{"."}
}
sourcePatchGOROOT, err := env.GOROOTWithEnv(cfg.Env)
if err != nil {
return nil, err
}
sourcePatchGoVersion, err := env.GOVERSIONWithEnv(cfg.Env)
if err != nil {
return nil, err
}
cfg.Overlay, err = buildSourcePatchOverlayForGOROOT(cfg.Overlay, env.LLGoRuntimeDir(), sourcePatchGOROOT, sourcePatchBuildContext{
goos: conf.Goos,
goarch: conf.Goarch,
goversion: sourcePatchGoVersion,
buildFlags: cfg.BuildFlags,
})
if err != nil {
return nil, err
}
initial, err := packages.LoadEx(dedup, sizes, cfg, patterns...)
if err != nil {
return nil, err
Expand Down
Loading
Loading