Skip to content

fix: fresh scaffold commit fails check-added-large-files on .devcontainer/CHANGELOG.md #1801

Closed

Description

@c-vigo

Description

A new devcontainer/both-mode consumer's first scaffold commit fails check-added-large-files: the scaffold copies devkit's CHANGELOG.md to .devcontainer/CHANGELOG.md, and that file is now over the hook's 500 KB default (514,976 bytes at 1.17.0; 528,063 on dev). Found while building the #1762 consumer matrix.

Steps to Reproduce

  1. Render a fresh workspace with init-workspace.sh --no-prompts --mode both.
  2. git init && git add -A, then prek run (staged files, as a first git commit does).

Expected Behavior

A fresh scaffold commits cleanly with its own hooks.

Actual Behavior

check-added-large-files rejects .devcontainer/CHANGELOG.md (> 500 KB).

Environment

devkit 1.17.0 (the file crossed 500 KB with the 1.17.0 changelog); grows every release.

Additional Context

Existing consumers are unaffected (the hook checks only added files; upgrades modify it). Devkit's own root CHANGELOG.md is likewise only ever modified.

Possible Solution

Exclude ^\.devcontainer/CHANGELOG\.md$ from check-added-large-files in the scaffold hook definition (nix/hooks.nix is the SSoT for the rendered config). A preserved consumer config does not need a fold: the file is already added there.

Changelog Category

Fixed

Activity

  1. added
    bug
    priority:high
    on Oct 1, 2026
  2. c-vigo commented on Oct 1, 2026

    @c-vigo
    ContributorAuthor

    Fixed by #1805 (merged to dev, ships with the next release): check-added-large-files excludes ^\.devcontainer/CHANGELOG\.md$. Existing consumers need nothing, since the hook only checks added files.

  3. added a commit that references this issue on Oct 5, 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

    bugpriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions