Skip to content

direnv-mode CI: setup-devkit-toolchain forwards only PATH, shellHook env is silently dropped #1180

Closed

Description

@c-vigo

Description

The direnv-mode CI preamble (setup-devkit-toolchain) exports the dev-shell store bin dirs to GITHUB_PATH but never the shellHook's environment exports. Anything a project wires via shellHook (env defaults, tool configuration) works in every local nix develop/direnv session and silently vanishes on CI — local-vs-CI divergence that surfaces as unrelated tool errors.

Evidence (org-config)

Suggested direction

Either forward shellHook env (e.g. capture nix print-dev-env exports into GITHUB_ENV, possibly behind an opt-in) or document loudly that shellHook env is local-only and recipes must be self-sufficient.

Refs: vig-os/org-config#17

Activity

  1. added
    bug
    priority:high
    area:ci
    effort:medium
    semver:minor
    on Jul 17, 2026
  2. c-vigo commented on Jul 17, 2026

    @c-vigo
    ContributorAuthor

    Fixed on dev via PR #1183 (merge @972e74b1): the direnv-mode preamble now diffs the ambient environment against the dev-shell environment and forwards shellHook-added/changed vars to GITHUB_ENV by default, minus a denylist of session state and Nix/stdenv build machinery. Documented in docs/MIGRATION.md. Ships with the next devkit release.

  3. added a commit that references this issue on Aug 8, 2026
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

    area:cibugeffort:mediumpriority:highsemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions