Skip to content

Sandboxed git+ dependency is not added correctly #5545

@armstrys

Description

@armstrys

Describe the bug

When I am editing a sandboxed environment and add a dependency via the UI with git+https://github.com/xxxxxx/xxxx.git

The dependency is not added correctly.

When I run

uv add --script marimo_notebook.py git+https://github.com/xxxxxx/xxxx.git the dependency is added to the script correctly.

In the first case this section is omitted at the bottom of the dependencies.

# [tool.uv.sources]
# xxxx = { git = "https://github.com/xxxxxx/xxxx.git" }

Will you submit a PR?

  • Yes

Environment

{
  "marimo": "0.14.10",
  "OS": "Darwin",
  "OS Version": "23.5.0",
  "Processor": "arm",
  "Python Version": "3.13.0",
  "Binaries": {
    "Browser": "137.0.7151.122",
    "Node": "v20.14.0"
  },
  "Dependencies": {
    "click": "8.2.1",
    "docutils": "0.21.2",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.8.2",
    "narwhals": "1.45.0",
    "packaging": "25.0",
    "psutil": "7.0.0",
    "pygments": "2.19.2",
    "pymdown-extensions": "10.16",
    "pyyaml": "6.0.2",
    "starlette": "0.47.1",
    "tomlkit": "0.13.3",
    "typing-extensions": "4.14.0",
    "uvicorn": "0.35.0",
    "websockets": "15.0.1"
  },
  "Optional Dependencies": {
    "anywidget": "0.9.18",
    "duckdb": "1.3.1",
    "nbformat": "5.10.4",
    "openai": "1.93.0",
    "pandas": "2.3.0",
    "polars": "0.19.19",
    "pyarrow": "18.1.0",
    "loro": "1.5.2"
  },
  "Experimental Flags": {}
}```

</details>


### Code to reproduce

_No response_

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions