MCPcopy Index your code
hub / github.com/dagger/dagger / VendorConfig

Function VendorConfig

sdk/python/runtime/python.go:63–72  ·  view source on GitHub ↗

VendorConfig appends to a pyproject.toml the config to vendor the client library

(cfg, path string)

Source from the content-addressed store, hash-verified

61
62// VendorConfig appends to a pyproject.toml the config to vendor the client library
63func VendorConfig(cfg, path string) string {
64 if path == "" {
65 return cfg
66 }
67 return fmt.Sprintf(
68 "%s\n\n[tool.uv.sources]\ndagger-io = { path = %q, editable = true }\n",
69 strings.TrimSpace(cfg),
70 path,
71 )
72}

Callers 1

WithTemplateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected