Skip to content

fix(ci): generate_dockerfiles.nu: path parse returns record, not table - #214

Merged
develop7 merged 1 commit into
haskell:masterfrom
develop7:push-zwyrrzqxxwtk
Jul 30, 2026
Merged

develop7 merged 1 commit into
haskell:masterfrom
develop7:push-zwyrrzqxxwtk

Conversation

@develop7

Copy link
Copy Markdown
Collaborator

The generate job (.github/workflows/generator.yml) fails on every PR with:

generate_dockerfiles.nu:17:22  Type mismatch
  let parts: table = $in | path parse
                    ^^^^^^^^ expected table, found record

path parse returns record<parent,stem,extension>, not table. Current nushell (installed via nixpkgs#nushell) rejects the : table annotation at parse time, so the script exits 1 before generating anything.

generator.yml runs on pull_request: {}, so this surfaced on #213 but is unrelated to it — it breaks every PR.

Fix: tablerecord on line 17. Verified locally: all 24 Dockerfiles generate, git diff --exit-code clean.

nushell rejects the `: table` annotation on `path parse` output at
parse time (it returns `record<parent,stem,extension>`), so the
generator workflow exits 1 before generating anything.

Bumps into every PR since generator.yml runs on `pull_request: {}`;
surfaced on haskell#213 but is unrelated to it.
@develop7
develop7 force-pushed the push-zwyrrzqxxwtk branch from 3a26122 to bd27a5a Compare July 30, 2026 21:40
@develop7
develop7 merged commit e856cee into haskell:master Jul 30, 2026
1 check passed
@develop7
develop7 deleted the push-zwyrrzqxxwtk branch July 30, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant