Skip to content

Installer: env DEVKIT_FEATURES_DISABLED ignored; existing justfile overwritten; existing pre-commit config has no merge path #2104

Backlog

Description

@gerchowl

Problem

The installer fell short in three places while adopting devkit 1.19.2 (--mode direnv --workflow trunk) into an existing large repo. That repo has its own ~480-line justfile, its own .pre-commit-config.yaml with custom local hooks, and its own CI (2026-12-01).

  1. DEVKIT_FEATURES_DISABLED exported in the environment is silently ignored. The installer reads it only from the repo's .vig-os manifest. With DEVKIT_FEATURES_DISABLED=release,worktree,skills exported, --preview still listed all 92 files, including the skills and the release workflows. Only after a .vig-os was seeded by hand did the report drop to the expected 45 files to add, 3 to overwrite and 2 preserved.
  2. justfile is overwritten in an existing repo. devkit's recipes live in justfile.project, but the root justfile is replaced. In a repo whose justfile is the team's command surface, that destroys it. The adopter had to decline the justfile entirely and port devkit's recipe names by hand.
  3. An existing .pre-commit-config.yaml is reported as "preserved" with no merge path. devkit's hooks (typos, shellcheck, yamllint, actionlint, zizmor, private-key detection, …) then never arrive. The adopter has to diff and copy them by hand, and the preview doesn't show which hooks would have been added.

Proposal

  1. Read DEVKIT_FEATURES_DISABLED (and the other DEVKIT_* profile keys) from the environment when .vig-os lacks them, and write them into the seeded .vig-os. At the least, --dry-run/--preview should warn that an exported value is ignored.
  2. When a root justfile exists, don't overwrite it. Add import? 'justfile.devkit' (or mod devkit) to it and put devkit's recipes there, and report this in --preview.
  3. When .pre-commit-config.yaml exists, have --preview list the devkit hooks it lacks. Offer --merge-hooks to append them as a separate repos: block, never reordering or removing the repo's own hooks.

Acceptance

  • An exported DEVKIT_FEATURES_DISABLED changes the preview.
  • Adopting into a repo with its own justfile keeps every existing recipe.
  • The preview names the hooks a merge would add.

Related: #2094 (adoption into an existing flake repo), #1833 (cold adoption tracking), #2097 (end-of-file-fixer on golden fixtures).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions