astral-sh / astral-sh/uv-aws-lambda-example

feature: example using path dependencies

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
64
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Even after days of trying I can't manage to create a Docker image with a multi-stage build that works for packages that use path dependencies. Here's an example package setup from a monorepo:

```
monorepo
├── service-a
├── service-b
├── library-a
└── library-b
```

Dependencies are as follows:
- `service-a` -> `library-a` and `library-b`
- `library-a` -> `library-b`
- `service-b` -> `library-b`

All dependencies use path dependencies e.g.

```toml
[project]
name = "service-a"
dependencies = [
"library-a",
"library-b",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
library-a = { path = "../library-a", editable = true }
library-b = { path = "../library-b", editable = true }
```

Any suggestions would be much appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.