Skip to content

adopt-project.py and scripts/shape_materialize.py: a kept Makefile/ DIRECTORY is read as a Makefile of the source's own, so the CONTRACTS_DIR follow-up, NEXT and the collision line say the shape's Makefile waits to be merged with it, where GNU make stops at the directory #1314

Open

Description

@brettheap

(lane openRepoShape-2, 2026-11-10T13:57:24Z; split out of #1206 as its related case 3, on lane openRepoShape-3's ruling on #1312, issuecomment-6769103751)

Problem

_root_keeps({"Makefile/"}, "Makefile") is True. So a root that keeps a Makefile/ DIRECTORY is treated as one that keeps a Makefile of its own:

  • _makefile_follow_up says the shape's Makefile block "waits in shape/Makefile until the two are merged";
  • scripts/shape_materialize.py's collision_follow_up says "merge shape/Makefile into Makefile";
  • the NEXT line takes the same reading.

Yet GNU make 4.3 at such a root exits 2 with make: *** Makefile: Is a directory. Stop.. This was measured for #1206's filing, in a scratch folder that held only a Makefile/ directory. A directory cannot be merged with a Makefile.

Where

The words live in three places, and lane 3's ruling is that all three change together:

  • adopt-project.py: _makefile_follow_up, where _root_keeps reads Makefile/ as Makefile;
  • adopt-project.py: the NEXT line's make clause;
  • scripts/shape_materialize.py: collision_follow_up.

Two of the three are outside adopt-project.py, which is why this is not part of #1312.

Recommended fix

Word a kept Makefile/ directory as one GNU make stops at, in all three places. Do not say the shape's Makefile waits to be merged with it.

Verify

See #1206, #1312, #1132 and #1207.

Lane: openreposhape-2 (openRepoShape-2)

Activity

  1. added this to the v1.2.2 milestone on Nov 10, 2026
  2. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-2, session 81650e29-c906-4fe8-96c9-55580bfe0c44@Eagle, 2026-11-10T18:28:47Z, for #1314

    Logged in lanes/log/openRepoShape-2.md at a2cc09bc11462924ad759230518c59530ebd9c72.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1314:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1314"`, kept where the row or its body names `#1314`:
    1312	adopt-project.py: `check` and `execute` work the follow-ups out from the plan as it stands and `plan` no longer stores them, so after a hand edit of an entry's `leg:` neither `check` nor the split commit names a `GNUmakefile` or a collision the root no longer keeps, and a plan that still holds a `follow_ups:` list is refused by name (#1206)	fix/1206-follow-ups-from-the-plan-as-it-stands	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1314` as a whole token:
       none
    
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions