fix: apply Layer.fresh at instance service definition site (#18418)

This commit is contained in:
Kit Langton
2026-03-20 14:37:12 -04:00
committed by GitHub
parent ce845a0b1b
commit d70099b059
21 changed files with 2434 additions and 2139 deletions

View File

@@ -34,7 +34,7 @@ export function withServices<S>(
project: Instance.project,
}),
)
let resolved: Layer.Layer<S> = Layer.fresh(layer).pipe(Layer.provide(ctx)) as any
let resolved: Layer.Layer<S> = layer.pipe(Layer.provide(ctx)) as any
if (options?.provide) {
for (const l of options.provide) {
resolved = resolved.pipe(Layer.provide(l)) as any