Skip to content

Plugins from the same repo share the same state directories #1848

@jay-aye-see-kay

Description

@jay-aye-see-kay

What happened?

We have two plugins in a public but for internal use repo here https://github.com/cultureamp/devbox-extras/tree/main/plugins and noticed that their value of {{ .Virtenv }} is the same.

So if both of our two plugins are installed the corepack-bin/ from one and data/+process-compose.yaml from the other are both in .devbox/virtenv/cultureamp-devbox-extras/. I'm not sure what happens if they both try to create a file/dir with the same name.

Steps to reproduce

  1. create a temp devbox project with the devbox.json defined below
  2. run ls .devbox/virtenv/cultureamp-devbox-extras/ and see their files are all together in the same dir

Command

No response

devbox.json

{
  "packages": [
    "nodejs_18@latest",
    "github:cultureamp/devbox-extras#dynamodb_local"
  ],
  "include": [
    "github:cultureamp/devbox-extras?dir=plugins/corepack",
    "github:cultureamp/devbox-extras?dir=plugins/dynamodb_local"
  ]
}

Devbox version

0.9.1

Nix version

.devbox/virtenv/cultureamp-devbox-extras/

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssue needs triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions