Skip to content

package completions not active in devbox shells (e.g. kubectl ) #2776

@gberche-orange

Description

@gberche-orange

What happened?

The kubectl nix package seems to have builtin completion enabled, see https://github.com/NixOS/nixpkgs/blob/d04d8548aed39902419f14a8537006426dc1e4fa/pkgs/by-name/ku/kubectl/package.nix#L24-L29

However, following a devbox shell, the kubectl completion is not active.

I'm running plain fresh ubuntu 24.0.4 with bash shell.

Same problem with all packages, e.g. kind also supporting completion https://github.com/NixOS/nixpkgs/blob/d04d8548aed39902419f14a8537006426dc1e4fa/pkgs/by-name/ki/kind/package.nix#L41-L46

Steps to reproduce

  1. devbox shell
  2. kubectl

Command

No response

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetpack-io/devbox/0.10.4/.schema/devbox.schema.json",
  "packages": [
    "kubectl@1.33.4"
  ],
  "shell": {
    "init_hook": [
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Devbox version

0.16.0

Nix version

nix (Nix) 2.18.1

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