Skip to content

Cannot explicitly add multiple built-in plugins #2790

@apgrucza

Description

@apgrucza

What happened?

Adding two different built-in plugins to the include array in devbox.json results in Error: circular or duplicate include detected.

Built-in plugins need to be explicitly added in certain cases, e.g. when the package that the plugin relates to is installed via a flake reference.

Steps to reproduce

  1. Add "include": ["plugin:nodejs", "plugin:python"] to devbox.json
  2. Run a command such as devbox shell

Command output:

Error: circular or duplicate include detected:
 -> plugin:python

Command

No response

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.17.0/.schema/devbox.schema.json",
  "include": [
    "plugin:nodejs",
    "plugin:python"
  ],
  "packages": [],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.17.0

Nix version

nix (Nix) 2.26.2

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response

Metadata

Metadata

Assignees

No one assigned

    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